Last active
January 22, 2019 14:09
-
-
Save NULLx76/4326204608af914f04a23b59828f5de4 to your computer and use it in GitHub Desktop.
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 443 ssl http2; | |
server_name github.xirion.net; | |
ssl_certificate /etc/letsencrypt/live/xirion.net/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/xirion.net/privkey.pem; | |
ssl_dhparam /etc/ssl/certs/dhparam.pem; | |
location / { | |
proxy_set_header Host github.com; | |
proxy_pass https://github.com; | |
# Fixing some headers (not essential) | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Forwarded-Port $server_port; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
# Websocket stuff | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection $connection_upgrade; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment