mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-31 19:02:35 +02:00
Apply suggestion (nginx version and config)
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
5db728841b
commit
de6437e494
2 changed files with 1 additions and 3 deletions
|
@ -3,6 +3,6 @@ services:
|
||||||
nginx:
|
nginx:
|
||||||
network_mode: host
|
network_mode: host
|
||||||
restart: always
|
restart: always
|
||||||
image: nginx:1.21.3-alpine
|
image: nginx:stable-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- '/compose/volumes/nginx/:/etc/nginx/'
|
- '/compose/volumes/nginx/:/etc/nginx/'
|
|
@ -18,7 +18,6 @@ http {
|
||||||
|
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
|
||||||
### SSL Settings for all servers (https://ssl-config.mozilla.org/#server=nginx&server-version=1.17.2&config=intermediate)
|
### SSL Settings for all servers (https://ssl-config.mozilla.org/#server=nginx&server-version=1.17.2&config=intermediate)
|
||||||
# certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
|
# certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
|
||||||
ssl_certificate /etc/nginx/ssl/status.yoursite.fullchain.pem;
|
ssl_certificate /etc/nginx/ssl/status.yoursite.fullchain.pem;
|
||||||
|
@ -53,7 +52,6 @@ http {
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
|
|
||||||
# Remove Headers that gonna be sent to client
|
# Remove Headers that gonna be sent to client
|
||||||
proxy_hide_header X-Powered-By;
|
proxy_hide_header X-Powered-By;
|
||||||
proxy_hide_header Server;
|
proxy_hide_header Server;
|
||||||
|
|
Loading…
Add table
Reference in a new issue