-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnginx.conf
More file actions
43 lines (32 loc) · 807 Bytes
/
nginx.conf
File metadata and controls
43 lines (32 loc) · 807 Bytes
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
http {
# error_log /etc/nginx/error_log.log warn;
client_max_body_size 10m;
server {
listen 80;
server_name test.padloc.app;
server_tokens off;
location /.well-known/acme-challenge/ {
root /certbot-webroot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
server_name test.padloc.app;
listen 443 ssl http2;
location /api/ {
proxy_pass http://padloc_server:3000;
rewrite ^/padloc_server(.*)$ $1 break;
}
location / {
proxy_pass http://padloc_pwa:8080;
rewrite ^/padloc_server(.*)$ $1 break;
}
ssl_certificate /certs/fullchain.pem;
ssl_certificate_key /certs/privkey.pem;
# include /certs/ssl.conf*;
# include /etc/letsencrypt/options-ssl-nginx.conf;
}
}
events {}