modify default nginx config to listen on 443
This commit is contained in:
parent
95e3332f80
commit
6800a75f86
@ -18,4 +18,5 @@
|
|||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
port: ssh
|
port: ssh
|
||||||
|
src: 192.168.69.0/24
|
||||||
...
|
...
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user