From 70831b3055ad8119cbca56e27967b4878709707e Mon Sep 17 00:00:00 2001 From: realaravinth Date: Thu, 31 Mar 2022 16:40:35 +0530 Subject: [PATCH] feat: add nginx sample configuration to deploy Pages --- config/pages-nginx-config | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 config/pages-nginx-config diff --git a/config/pages-nginx-config b/config/pages-nginx-config new file mode 100644 index 0000000..0000153 --- /dev/null +++ b/config/pages-nginx-config @@ -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; + } +}