25 lines
574 B
Plaintext
25 lines
574 B
Plaintext
server {
|
|
listen 80;
|
|
server_name hvgblog.lndo.site;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name ${WP-FQDN};
|
|
|
|
ssl_certificate /run/secrets/SSL_CRT;
|
|
ssl_certificate_key /run/secrets/SSL_KEY;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location / {
|
|
proxy_buffering off;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Port $server_port;
|
|
|
|
proxy_pass http://wordpress:3000;
|
|
}
|
|
}
|