Created
August 9, 2020 10:16
-
-
Save Todorovikj/c447cb71ecf16d46dad7b2f13163ce5a to your computer and use it in GitHub Desktop.
Nginx global conf f1
This file contains 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 0.0.0.0:80; | |
server_name f1; | |
access_log /var/log/nginx/default_access.log; | |
error_log /var/log/nginx/default_error.log; | |
gzip on; | |
gzip_proxied any; | |
gzip_types | |
text/css | |
text/javascript | |
text/xml | |
text/plain | |
application/javascript | |
application/x-javascript | |
application/json; | |
location /jenkins/ { | |
gzip_static on; | |
proxy_pass http://jenkins:8080; | |
proxy_read_timeout 900; | |
proxy_max_temp_file_size 0; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_redirect off; | |
} | |
location / { | |
proxy_pass http://f1-angular:4200; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment