blob: b9b6c6712a21addffb7bdc4fe641af8a42dc5fff (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# -*- Nginx -*-
# {{ ansible_managed }}
server {
listen 80;
listen [::]:80;
server_name cosmos.party
www.cosmos.party
git.cosmos.party
lists.cosmos.party
andr.cosmos.party;
location ^~ /.well-known/acme-challenge/ {
root /var/www/acme;
}
location / {
return 307 https://$host$request_uri;
}
}
server {
server_name cosmos.party
www.cosmos.party;
listen unix:/var/run/nginx/http.sock;
listen 443 ssl;
listen [::]:443 ssl;
listen 443 quic;
listen [::]:443 quic;
http2 on;
http3 on;
add_header Alt-Svc 'h3=":443"; ma=86400';
ssl_certificate /etc/ssl/cosmos.party.fullchain.pem;
ssl_certificate_key /etc/ssl/private/cosmos.party.key;
ssl_protocols TLSv1.2 TLSv1.3;
root /srv/http/cosmos.party;
index index.html;
location /en/ { try_files $uri $uri/ =404; }
location /ru/ { try_files $uri $uri/ =404; }
location /sk/ { try_files $uri $uri/ =404; }
location / { try_files $uri /en$uri /en$uri/ =404; }
}
server {
server_name andr.cosmos.party;
listen unix:/var/run/nginx/http.sock;
listen 443 ssl;
listen [::]:443 ssl;
listen 443 quic;
listen [::]:443 quic;
http2 on;
http3 on;
ssl_certificate /etc/ssl/cosmos.party.fullchain.pem;
ssl_certificate_key /etc/ssl/private/cosmos.party.key;
ssl_protocols TLSv1.2 TLSv1.3;
add_header Alt-Svc 'h3=":443"; ma=86400';
root /srv/http/$host;
autoindex on;
}
|