33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
server {
|
|
listen 80 default_server;
|
|
root /var/www/certbot;
|
|
index index.html index.htm index.nginx-debian.html;
|
|
server_name _;
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|
|
server {
|
|
listen 8083 default_server;
|
|
root /var/www/html-nginx;
|
|
index index.html index.htm;
|
|
server_name _;
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|
|
server {
|
|
# touch /etc/nginx/include/phares.duckdns.org
|
|
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/include/phares.duckdns.org.key -out /etc/nginx/include/phares.duckdns.org.crt -config /etc/nginx/include/phares.duckdns.org
|
|
ssl_certificate /home/podman/wild-phares/fullchain.cer;
|
|
# ssl_certificate /home/podman/wild-phares/phares.duckdns.org.cer;
|
|
ssl_certificate_key /home/podman/wild-phares/phares.duckdns.org.key;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
listen 443 ssl http2;
|
|
server_name phares.duckdns.org;
|
|
root /var/www/html-nginx;
|
|
index index.nginx-debian.html;
|
|
location / {
|
|
try_files $uri $uri.html $uri/ =404;
|
|
}
|
|
} |