Skip to content

Commit

Permalink
change lua init
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Apr 25, 2024
1 parent d19a088 commit 065b676
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions etc/nginx/sites-enabled/default
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 065b676

Please sign in to comment.