Created
December 13, 2023 06:59
-
-
Save Nurlan199206/965af85f868132ccf6890bb7e3338575 to your computer and use it in GitHub Desktop.
jira8 nginx reverse proxy
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 jira.test.kz:80; | |
server_name jira.test.kz; | |
listen 443 default ssl; | |
ssl_certificate /etc/ssl/star-2024/bundle.crt; | |
ssl_certificate_key /etc//ssl/star-2024/private.key; | |
ssl_session_timeout 5m; | |
ssl_prefer_server_ciphers on; | |
location / { | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_pass http://127.0.0.1:8080/; | |
client_max_body_size 100M; | |
proxy_connect_timeout 300; | |
proxy_send_timeout 300; | |
proxy_read_timeout 300; | |
send_timeout 300; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment