nginx/nginx/default.conf hinzugefügt
This commit is contained in:
parent
5e05c6360e
commit
74cf01c18e
32
nginx/nginx/default.conf
Normal file
32
nginx/nginx/default.conf
Normal file
@ -0,0 +1,32 @@
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name test;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
# ---- Dashboard
|
||||
server {
|
||||
listen 443 ssl;
|
||||
|
||||
server_name test;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/nginx.pem;
|
||||
ssl_certificate_key /etc/nginx/certs/nginx.key;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
client_header_timeout 1d;
|
||||
client_body_timeout 1d;
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
location / {
|
||||
proxy_pass http://containerhost:8096;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user