install dependencies
opm get ledgetech/lua-resty-httpsetup script
mkdir -p /usr/local/openresty/nginx/conf/lua.dplace discord_invite.lua to /usr/local/openresty/nginx/conf/lua.d/
In nginx.conf add
http {
lua_package_path '/usr/local/openresty/nginx/conf/lua.d/?.lua;;';
}place discord_invite.conf in /usr/local/openresty/nginx/conf/conf.d/
and change server_name and other settings like tls