Update 'scripts/nginx-site-template.conf'
parent
348c902e32
commit
6556323b84
|
@ -1,10 +1,10 @@
|
||||||
server {
|
server {
|
||||||
listen 443;
|
listen 443;
|
||||||
# server_name serverNameVar;
|
server_name #serverNameVar;
|
||||||
|
|
||||||
ssl on;
|
ssl on;
|
||||||
ssl_certificate /etc/letsencrypt/live/news.162536.xyz/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/#serverNameVar/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/news.162536.xyz/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/#serverNameVar/privkey.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8080/;
|
proxy_pass http://127.0.0.1:8080/;
|
||||||
|
@ -18,9 +18,9 @@ server {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
# server_name serverNameVar;
|
server_name #serverNameVar;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 301 https://news.162536.xyz$request_uri;
|
return 301 https://#serverNameVar$request_uri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue