-
-
Save xream/6279636 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; | |
server_name twitter-api.vii.im api.twitter.com; | |
ssl on; | |
ssl_certificate /etc/nginx/certs/vii.im.crt; | |
ssl_certificate_key /etc/nginx/certs/vii.im.key; | |
location / { | |
proxy_pass https://api.twitter.com; | |
proxy_set_header Host api.twitter.com; | |
} | |
} | |
server | |
{ | |
listen 443; | |
server_name twitter-n.vii.im twitter.com; | |
ssl on; | |
ssl_certificate /etc/nginx/certs/vii.im.crt; | |
ssl_certificate_key /etc/nginx/certs/vii.im.key; | |
location / { | |
proxy_pass https://twitter.com; | |
proxy_set_header Host twitter.com; | |
} | |
} | |
server | |
{ | |
listen 443; | |
server_name twitter-upload.vii.im upload.twitter.com; | |
ssl on; | |
ssl_certificate /etc/nginx/certs/vii.im.crt; | |
ssl_certificate_key /etc/nginx/certs/vii.im.key; | |
location / { | |
proxy_pass https://upload.twitter.com; | |
proxy_set_header Host upload.twitter.com; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment