modify default nginx config to listen on 443

This commit is contained in:
Torma Kristóf 2023-03-05 19:18:41 +01:00
parent 95e3332f80
commit 6800a75f86
2 changed files with 12 additions and 2 deletions

View File

@ -18,4 +18,5 @@
community.general.ufw: community.general.ufw:
rule: allow rule: allow
port: ssh port: ssh
src: 192.168.69.0/24
... ...

View File

@ -58,6 +58,15 @@ http {
# Virtual Host Configs # Virtual Host Configs
## ##
include /etc/nginx/conf.d/*.conf; server {
include /etc/nginx/sites-enabled/*; root /var/www/html;
server_name _;
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
location /{
try_files $uri $uri/ =404;
}
}
} }