23 lines
499 B
Plaintext
23 lines
499 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
|
||
|
server_name ${DOMAIN} www.${DOMAIN};
|
||
|
|
||
|
location ~ /.well-known/acme-challenge {
|
||
|
allow all;
|
||
|
root /var/www/certbot;
|
||
|
}
|
||
|
|
||
|
return 301 https://${DOMAIN}$request_uri;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl http2;
|
||
|
ssl_certificate /etc/letsencrypt/live/${DOMAIN}/fullchain.pem;
|
||
|
ssl_certificate_key /etc/letsencrypt/live/${DOMAIN}/privkey.pem;
|
||
|
server_name ${DOMAIN} www.${DOMAIN};
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://api:${API_PORT}/;
|
||
|
}
|
||
|
}
|