feat: add nginx sample configuration to deploy Pages
This commit is contained in:
parent
55b7bf92bb
commit
70831b3055
1 changed files with 21 additions and 0 deletions
21
config/pages-nginx-config
Normal file
21
config/pages-nginx-config
Normal file
|
@ -0,0 +1,21 @@
|
|||
server {
|
||||
server_name HOSTNAME;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
listen 443 ssl http2;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:12081;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name HOSTNAME; # change hostname
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue