Skip to content

Instantly share code, notes, and snippets.

@pierangelo1982
Last active March 30, 2017 23:52
Show Gist options
  • Save pierangelo1982/cabc2f178066aac60afbc17ae3a3eb6c to your computer and use it in GitHub Desktop.
Save pierangelo1982/cabc2f178066aac60afbc17ae3a3eb6c to your computer and use it in GitHub Desktop.
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