-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e019523
commit 38df153
Showing
10 changed files
with
87 additions
and
1 deletion.
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
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
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
35 changes: 35 additions & 0 deletions
35
roles/setup_install_nginx/templates/https-endpoint-dotters.j2
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,35 @@ | ||
server { | ||
listen {{ default_secure_rpc_port }} ssl http2; | ||
listen [::]:{{ default_secure_rpc_port }} ssl http2; | ||
server_name {{ default_public_dns_dotters }}; | ||
|
||
# SSL/TLS settings | ||
ssl_certificate /etc/letsencrypt/live/{{ default_public_dns_dotters }}/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/{{ default_public_dns_dotters }}/privkey.pem; | ||
|
||
# Strong SSL settings | ||
ssl_protocols TLSv1.3; | ||
ssl_ciphers 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384'; | ||
ssl_prefer_server_ciphers off; | ||
ssl_session_cache shared:SSL:10m; | ||
ssl_session_timeout 10m; | ||
ssl_session_tickets off; | ||
|
||
# OCSP Stapling | ||
ssl_stapling on; | ||
ssl_stapling_verify on; | ||
resolver 1.1.1.1 1.0.0.1 valid=300s; | ||
resolver_timeout 5s; | ||
|
||
location / { | ||
proxy_buffers 16 4k; | ||
proxy_buffer_size 2k; | ||
proxy_pass http://127.0.0.1:{{ default_rpc_port }}; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} | ||
} |
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,35 @@ | ||
server { | ||
listen {{ default_secure_rpc_port }} ssl http2; | ||
listen [::]:{{ default_secure_rpc_port }} ssl http2; | ||
server_name {{ default_public_dns_ibp }}; | ||
|
||
# SSL/TLS settings | ||
ssl_certificate /etc/letsencrypt/live/{{ default_public_dns_ibp }}/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/{{ default_public_dns_ibp }}/privkey.pem; | ||
|
||
# Strong SSL settings | ||
ssl_protocols TLSv1.3; | ||
ssl_ciphers 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384'; | ||
ssl_prefer_server_ciphers off; | ||
ssl_session_cache shared:SSL:10m; | ||
ssl_session_timeout 10m; | ||
ssl_session_tickets off; | ||
|
||
# OCSP Stapling | ||
ssl_stapling on; | ||
ssl_stapling_verify on; | ||
resolver 1.1.1.1 1.0.0.1 valid=300s; | ||
resolver_timeout 5s; | ||
|
||
location / { | ||
proxy_buffers 16 4k; | ||
proxy_buffer_size 2k; | ||
proxy_pass http://127.0.0.1:{{ default_rpc_port }}; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} | ||
} |