-
-
Save jourjine/2b6a5e11381b922ab6097d970436b898 to your computer and use it in GitHub Desktop.
Reverse Proxy Nginx > Ghost w/SSL
This file contains hidden or 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 80; | |
listen 443 ssl; | |
server_name dev.pmgarman.me; | |
root /home/pmgarman/dev.pmgarman.me; | |
ssl_certificate /home/pmgarman/ssl/dev.pmgarman.me/dev_pmgarman_me.selfsigned.crt; | |
ssl_certificate_key /home/pmgarman/ssl/dev.pmgarman.me/dev_pmgarman_me.key; | |
location / { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_redirect off; | |
proxy_http_version 1.1; | |
proxy_pass http://127.0.0.1:2368; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment