Created
November 9, 2019 01:19
-
-
Save FeodorFitsner/29514be00748fcb5b55fe16d0ca50c3b to your computer and use it in GitHub Desktop.
NGINX configuration for AppVeyor Server
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
# original discussion: https://github.com/appveyor/ci/issues/3184#issuecomment-552023103 | |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name example.com; | |
ssl_certificate /root/.acme.sh/example.com/fullchain.cer; | |
ssl_certificate_key /root/.acme.sh/example.com/example.com.key; | |
access_log /var/log/nginx/access-appveyor.log; | |
error_log /var/log/nginx/error-appveyor.log warn; | |
location / { | |
proxy_pass http://localhost:8050; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection keep-alive; | |
proxy_set_header Host $host; | |
proxy_cache_bypass $http_upgrade; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
location ~ ^/(HostAgentHub|BuildAgentHub|BrowserHub)$ { | |
proxy_pass http://localhost:8050; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection upgrade; | |
proxy_set_header Host $host; | |
proxy_cache_bypass $http_upgrade; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment