39 lines
920 B
Plaintext
39 lines
920 B
Plaintext
server {
|
|
listen 80;
|
|
server_name easyattend.duckdns.org;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name easyattend.duckdns.org;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/easyattend.duckdns.org/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/easyattend.duckdns.org/privkey.pem;
|
|
|
|
location / {
|
|
proxy_pass http://frontend:80;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://backend:3000/api/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /adminer/ {
|
|
proxy_pass http://adminer:8080/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|