Created
February 14, 2018 22:21
-
-
Save mattwelke/e89ac6cc8a108e0ec26bb99d9723cc13 to your computer and use it in GitHub Desktop.
NGINX Example: As wrapper around Ghost blog.
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
events { | |
worker_connections 1024; | |
} | |
http { | |
client_max_body_size 10m; | |
server { | |
listen 80; | |
listen 443 ssl; | |
server_name mattwelke.com; | |
ssl_certificate /etc/nginx/ssl/mattwelke.com.cert; | |
ssl_certificate_key /etc/nginx/ssl/mattwelke.com.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_pass http://ghost:2368; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment