-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnginx.conf
43 lines (33 loc) · 959 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
worker_processes auto;
daemon off;
events {
worker_connections 1024;
}
http {
include mime.types;
access_log /dev/stdout;
error_log /dev/stderr;
server {
listen 8080;
resolver 1.1.1.1 ipv6=off;
proxy_connect;
proxy_connect_allow 443 563;
proxy_connect_connect_timeout 10s;
proxy_connect_read_timeout 10s;
proxy_connect_send_timeout 10s;
proxy_hide_header Upgrade;
proxy_hide_header X-Powered-By;
add_header Content-Security-Policy "upgrade-insecure-requests";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Cache-Control "no-transform" always;
add_header Referrer-Policy no-referrer always;
add_header X-Robots-Tag none;
location / {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_pass $scheme://$host;
}
}
}