feat: add nginx sample configuration to deploy Pages

This commit is contained in:
Aravinth Manivannan 2022-03-31 16:40:35 +05:30
parent 55b7bf92bb
commit 70831b3055
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

21
config/pages-nginx-config Normal file
View 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;
}
}