-
Notifications
You must be signed in to change notification settings - Fork 2
/
nginx.conf
63 lines (47 loc) · 1.29 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
server {
listen 80;
listen 443 ssl;
server_name mp3-reverser.com;
ssl_certificate /etc/letsencrypt/live/mp3-reverser.com-0001/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mp3-reverser.com-0001/privkey.pem;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
return 301 https://www.mp3-reverser.com$request_uri;
}
server {
listen 80;
server_name www.mp3-reverser.com;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://www.mp3-reverser.com$request_uri;
}
}
server {
listen 443 ssl;
server_name www.mp3-reverser.com;
root /app;
ssl_certificate /etc/letsencrypt/live/mp3-reverser.com-0001/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mp3-reverser.com-0001/privkey.pem;
location / {
}
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location /ads.txt {
alias /app/injected/ads.txt;
}
location ~ ^/(google[0-9a-f]+\.html)$ {
alias /app/injected/$1;
}
location /api {
proxy_pass http://backend:5000;
}
error_page 404 = @notfoundredirect;
location @notfoundredirect {
return 302 /;
}
client_max_body_size 20M;
}