Created
July 8, 2019 16:05
-
-
Save sashas777/e77a00558db69db63ae4e37d49552319 to your computer and use it in GitHub Desktop.
/etc/nginx/sashas-config/https
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
server { | |
listen 443 ssl http2; | |
server_name admin.local.xx.com; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/cert.pem; | |
ssl_certificate_key /etc/nginx/ssl/key.pem; | |
ssl_session_timeout 24h; | |
keepalive_timeout 600s; | |
location / { | |
proxy_pass http://127.0.0.1:8080; | |
# proxy_pass http://127.0.0.1:6081; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto https; | |
proxy_set_header X-Forwarded-Port 443; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-Host $http_host; | |
proxy_set_header Ssl-Offloaded "1"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment