From 065b6763017614fa757965abab2ff23f2fb25d82 Mon Sep 17 00:00:00 2001 From: alexandredevely <12896316+alexandredevely@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:57:19 +0200 Subject: [PATCH] change lua init --- etc/nginx/sites-enabled/default | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/etc/nginx/sites-enabled/default b/etc/nginx/sites-enabled/default index 426fb50..77c2074 100644 --- a/etc/nginx/sites-enabled/default +++ b/etc/nginx/sites-enabled/default @@ -104,8 +104,7 @@ init_by_lua_block { my_speedtest = os.getenv("SPEEDTEST_FQDN") my_pyos = os.getenv("PYOS_FQDN") my_console = os.getenv("CONSOLE_FQDN") - my_website = os.getenv("WEBSITE_FQDN") -} + my_website = os.getenv("WEBSITE_FQDN") } server { @@ -154,10 +153,10 @@ server { # use env vars - set_by_lua_block $my_speedtest { return os.getenv("SPEEDTEST_FQDN")' } - set_by_lua_block $my_pyos { return os.getenv("PYOS_FQDN")' } - set_by_lua_block $my_console { return os.getenv("CONSOLE_FQDN")' } - set_by_lua_block $my_website { return os.getenv("WEBSITE_FQDN")' } + #set_by_lua_block $my_speedtest { return os.getenv("SPEEDTEST_FQDN")' } + #set_by_lua_block $my_pyos { return os.getenv("PYOS_FQDN")' } + #set_by_lua_block $my_console { return os.getenv("CONSOLE_FQDN")' } + #set_by_lua_block $my_website { return os.getenv("WEBSITE_FQDN")' } #add header add_header X-Frame-Options "SAMEORIGIN";