lj-packer/files/nginx/laser.conf

22 lines
389 B
Plaintext
Raw Normal View History

2020-09-24 13:45:34 +00:00
server {
listen 80;
listen [::]:80;
server_name _;
root /opt/LJ/www;
return 301 https://localhost$request_uri;
}
2020-09-23 16:56:10 +00:00
server {
listen 443 ssl;
listen [::]:443 ssl;
2020-09-24 13:45:34 +00:00
server_name _;
2020-09-23 16:56:10 +00:00
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
root /opt/LJ/www;
2020-09-24 13:45:34 +00:00
index index.html index.htm;
2020-09-23 16:56:10 +00:00
}