-
Notifications
You must be signed in to change notification settings - Fork 11
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 #391 from 18F/stages/rc-2023-08-29
Deploy RC 59 to Prod
- Loading branch information
Showing
8 changed files
with
61 additions
and
18 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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# bin/ directory. | ||
|
||
CONFIG = config/application.yml | ||
PORT ?= 8443 | ||
PORT ?= 8442 | ||
|
||
all: check | ||
|
||
|
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
web: bundle exec rackup config.ru --host "ssl://${HOST:-localhost}:${PORT:-8443}?key=config/local-certs/server.key&cert=config/local-certs/server.crt" | ||
web: bundle exec rails s -p 8442 | ||
nginx: nginx -c config/nginx_server.conf.example -p "`pwd`" |
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
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
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
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,31 @@ | ||
# run in foreground instead of via daemon | ||
worker_processes 1; | ||
daemon off; | ||
|
||
events {} | ||
http { | ||
upstream rails_upstream { | ||
server 127.0.0.1:8442; | ||
} | ||
|
||
server { | ||
listen 8443 ssl; | ||
server_name identity_pki; | ||
|
||
ssl_certificate local-certs/server.crt; | ||
ssl_certificate_key local-certs/server.key; | ||
ssl_verify_client optional_no_ca; # on; | ||
ssl_verify_depth 10; | ||
|
||
location / { | ||
proxy_redirect off; | ||
proxy_pass http://rails_upstream; | ||
proxy_set_header X-Client-Verify $ssl_client_verify; | ||
proxy_set_header X-Client-S-Dn $ssl_client_s_dn; | ||
proxy_set_header X-Client-I-Dn $ssl_client_i_dn; | ||
proxy_set_header X-Client-Serial $ssl_client_serial; | ||
proxy_set_header X-Client-Fingerprint $ssl_client_fingerprint; | ||
proxy_set_header X-Client-Cert $ssl_client_escaped_cert; | ||
} | ||
} | ||
} |
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