blob: 3a9013fe5313c5774f431c31d7b55cd1498bbd8e (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
server {
# Listen to port 443 on both IPv4 and IPv6.
listen 443 ssl;
listen [::]:443 ssl;
# Domain names this server should respond to.
server_name memzero.de www.memzero.de;
# Load the certificate files.
ssl_certificate /etc/letsencrypt/live/memzero/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/memzero/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/memzero/chain.pem;
# Load the Diffie-Hellman parameter.
ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;
root /www/memzero;
}
server {
# Listen to port 443 on both IPv4 and IPv6.
listen 443 ssl;
listen [::]:443 ssl;
# Domain names this server should respond to.
server_name blog.memzero.de;
# Load the certificate files.
ssl_certificate /etc/letsencrypt/live/memzero/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/memzero/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/memzero/chain.pem;
# Load the Diffie-Hellman parameter.
ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;
root /www/blog;
}
server {
# Listen to port 443 on both IPv4 and IPv6.
listen 443 ssl;
listen [::]:443 ssl;
# Domain names this server should respond to.
server_name dav.memzero.de;
# Load the certificate files.
ssl_certificate /etc/letsencrypt/live/memzero/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/memzero/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/memzero/chain.pem;
# Load the Diffie-Hellman parameter.
ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://baikal;
}
}
server {
# Drop any request that does not match any of the other server names.
listen 443 ssl default_server;
ssl_reject_handshake on;
}
|