Created
September 26, 2016 23:23
-
-
Save brucepom/83d146c2d9db400c4a3d559013a5ba37 to your computer and use it in GitHub Desktop.
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
upstream cdt_dashboard { | |
server 127.0.0.1:8080; | |
} | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server{ | |
listen 443; | |
server_name dashboard.countingdownto.com; | |
# Optional, dynamic gzipping, tyopically not needed. | |
# gzip on; | |
# gzip_types image/gif; | |
ssl on; | |
ssl_certificate /etc/nginx/countingdownto.cert; | |
ssl_certificate_key /etc/nginx/countingdownto.key; | |
ssl_session_timeout 5m; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; | |
ssl_prefer_server_ciphers on; | |
location / { | |
try_files $uri @proxy; | |
} | |
location @proxy { | |
include proxy_params; | |
proxy_redirect off; | |
proxy_pass http://cdt_dashboard; | |
proxy_set_header X-Real-IP $remote_addr; | |
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $host; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection $connection_upgrade; | |
} | |
} | |
server { | |
server_name dashboard.countingdownto.com | |
listen 80; | |
rewrite ^ https://dashboard.countingdownto.com$request_uri?; # permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment