blob: c4b1a833dbc1e08af7951b09fde54ae118d95529 (
plain) (
blame)
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
44
45
46
|
server {
listen 80;
server_name domain_goes_here;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
root wwwpath_goes_here;
server_name domain_goes_here;
ssl_certificate /etc/letsencrypt/live/domain_goes_here/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain_goes_here/privkey.pem;
error_log /var/log/gpigeon.log;
index index.html index.htm;
location = / {
return 301 /cgi-bin/gpigeon.cgi;
}
location = /cgi-bin/gpigeon.cgi {
ssi off;
gzip off;
fastcgi_pass unix:/run/fcgiwrap.sock;
include /etc/nginx/fastcgi_params;
}
location ~ ^/cgi-bin/l/(.*).cgi$ {
ssi off;
gzip off;
fastcgi_pass unix:/run/fcgiwrap.sock;
include /etc/nginx/fastcgi_params;
}
add_header Strict-Transport-Security "max-age=63072000; preload";
add_header Content-Security-Policy "default-src 'self'";
add_header X-Frame-Options DENY;
add_header Access-Control-Allow-Origin https://$server_name;
add_header Vary Origin; # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin#cors_and_caching
client_max_body_size 100m;
}
|