From a29b42237f16c1a6fcf0c3c5949979e8ff638a04 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 1 Jul 2024 11:00:37 -0400 Subject: [PATCH] adding nginx config --- app-nginx.conf.sigil | 38 ++++++++++++++++++++++++++++++++++++++ now.html | 5 ++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 app-nginx.conf.sigil diff --git a/app-nginx.conf.sigil b/app-nginx.conf.sigil new file mode 100644 index 0000000..71bacff --- /dev/null +++ b/app-nginx.conf.sigil @@ -0,0 +1,38 @@ +worker_processes 1; +error_log stderr; +pid nginx.pid; +daemon off; + +events { + worker_connections 768; +} + +http { + types_hash_max_size 2048; + include mime.types; + charset UTF-8; + server { + listen {{ $.PORT }}; + server_name _; + {{ if ne $.NGINX_ROOT "" }} + root /app/www/{{ $.NGINX_ROOT }}; + {{ else }} + root /app/www; + {{ end }} + index index.html; + port_in_redirect off; + + location /now { + try_files /now.html =404; + } + + location / { + {{ if ne $.NGINX_DEFAULT_REQUEST "" }} + try_files $uri $uri/ /{{ $.NGINX_DEFAULT_REQUEST }}; + {{ else }} + try_files $uri $uri/ =404; + {{ end }} + } + + } +} diff --git a/now.html b/now.html index be8d87e..498bb10 100644 --- a/now.html +++ b/now.html @@ -16,8 +16,11 @@

- now - thermokar.st + thermokar.st

+

+ now +

coming soon