15 lines
693 B
Plaintext
15 lines
693 B
Plaintext
server {
|
|
# touch /etc/nginx/include/bchs.duckdns.org
|
|
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/include/bchs.duckdns.org.key -out /etc/nginx/include/bchs.phares.duckdns.org.crt -config /etc/nginx/include/bchs.phares.duckdns.org
|
|
ssl_certificate /root/.acme.sh/wild-bchs/fullchain.cer;
|
|
# ssl_certificate /root/.acme.sh/wild-bchs/bchs.duckdns.org.cer;
|
|
ssl_certificate_key /root/.acme.sh/wild-bchs/bchs.duckdns.org.key;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
listen 443 ssl http2;
|
|
server_name *.bchs.duckdns.org;
|
|
root /var/www/html-bchs;
|
|
index index.html index.htm;
|
|
location / {
|
|
try_files $uri $uri.html $uri/ =404;
|
|
}
|
|
} |