Skip to content

Instantly share code, notes, and snippets.

@rayriffy rayriffy/blog.rayriffy.com.conf Secret
Created Sep 15, 2018

Embed
What would you like to do?
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name blog.rayriffy.com;
include snippets/_ssl.conf;
location / {
proxy_pass http://web-blog-rayriffy-com;
proxy_redirect off;
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;
}
}
server {
listen 80;
listen [::]:80;
server_name blog.rayriffy.com;
return 301 https://blog.rayriffy.com$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.