Last active
March 30, 2017 23:52
-
-
Save pierangelo1982/cabc2f178066aac60afbc17ae3a3eb6c 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
server { | |
listen 443; | |
server_name mydomain.com www.mydomain.com; | |
ssl on; | |
ssl_certificate /home/xxxxx/certificati/letsencrypt/live/mydomain.com/fullchain.pem; | |
ssl_certificate_key /home/xxxx/certificati/letsencrypt/live/mydomain.com/privkey.pem; | |
# Proxying the connections connections | |
location / { | |
proxy_pass http://89.46.70.64:8081; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Host $server_name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment