-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from soundscape-community/rdservice
data service: Add simple blue/green deployment to docker-compose.yml, add Caddyfiles to git
- Loading branch information
Showing
3 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Caddy configuration file for Soundscape back-end services | ||
|
||
# There are two Caddy configuration files that should be placed in /etc/caddy on | ||
# the server. A symbolic link /etc/caddy/Caddyfile points to the current active | ||
# configuration. The only difference between the two configurations is the port | ||
# number to forward the request to, 8081 for blue and 8082 for green. | ||
|
||
tiles.soundscape.services { | ||
reverse_proxy localhost:8081 { | ||
header_up X-Real-IP {remote_host} | ||
} | ||
header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" | ||
} | ||
|
||
newprod0.openscape.io { | ||
reverse_proxy localhost:8081 { | ||
header_up X-Real-IP {remote_host} | ||
} | ||
header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" | ||
} | ||
|
||
share.soundscape.services { | ||
header /.well-known/apple-app-site-association Content-Type application/json | ||
root * /home/soundscape/share.soundscape.services/ | ||
file_server | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Caddy configuration file for Soundscape back-end services | ||
|
||
# There are two Caddy configuration files that should be placed in /etc/caddy on | ||
# the server. A symbolic link /etc/caddy/Caddyfile points to the current active | ||
# configuration. The only difference between the two configurations is the port | ||
# number to forward the request to, 8081 for blue and 8082 for green. | ||
|
||
tiles.soundscape.services { | ||
reverse_proxy localhost:8082 { | ||
header_up X-Real-IP {remote_host} | ||
} | ||
header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" | ||
} | ||
|
||
newprod0.openscape.io { | ||
reverse_proxy localhost:8082 { | ||
header_up X-Real-IP {remote_host} | ||
} | ||
header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" | ||
} | ||
|
||
share.soundscape.services { | ||
header /.well-known/apple-app-site-association Content-Type application/json | ||
root * /home/soundscape/share.soundscape.services/ | ||
file_server | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters