-
Notifications
You must be signed in to change notification settings - Fork 0
/
element-quiz.conf.template
53 lines (42 loc) · 1.23 KB
/
element-quiz.conf.template
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
http {
server {
listen 80 default_server;
server_name _;
return 444;
}
server {
listen 443 default_server;
ssl_certificate /etc/letsencrypt/live/${PUBLIC_URL}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${PUBLIC_URL}/privkey.pem;
server_name _;
return 444;
}
server {
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/${PUBLIC_URL}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${PUBLIC_URL}/privkey.pem;
server_name ${PUBLIC_FRONT_URL};
location / {
proxy_pass http://front:3000/;
}
}
server {
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/${PUBLIC_URL}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${PUBLIC_URL}/privkey.pem;
server_name ${PUBLIC_API_URL};
location / {
proxy_pass http://api:4000/;
}
}
server {
listen 80;
server_name ${PUBLIC_FRONT_URL};
return 301 https://$host$request_uri;
}
server {
listen 80;
server_name ${PUBLIC_API_URL};
return 301 https://$host$request_uri;
}
}