Skip to content

Instantly share code, notes, and snippets.

@rayriffy rayriffy/ Secret
Created Sep 15, 2018

What would you like to do?
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
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;
return 301$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.