Skip to content
Discussion options

You must be logged in to vote

@sunjianan9900

Add this in your /etc/nginx/sites-available/default.

server {
server_name [YOUR_SERVER_NAME];
location / {
add_header Strict-Transport-Security "max-age=31536000" always;
add_header X-Frame-Options deny;
proxy_pass https://localhost:9443;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@drexhacker
Comment options

@stnguyen90
Comment options

@stnguyen90
Comment options

Answer selected bysunjianan9900
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LeiYangGH
Comment options

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
@sunjianan9900@eldadfux@stnguyen90@LeiYangGH@IzenDev@drexhacker