changed ACCOUNTS_AUTH_REQUIRED to ACCOUNTS_LIMIT_ACCESS string var for more flexibility
This commit is contained in:
parent
15aea1da40
commit
4b74ced941
|
@ -10,7 +10,7 @@ services:
|
|||
nginx:
|
||||
environment:
|
||||
- ACCOUNTS_ENABLED=true
|
||||
- ACCOUNTS_AUTH_REQUIRED=${ACCOUNTS_AUTH_REQUIRED:-true} # default to authenticated access only
|
||||
- ACCOUNTS_LIMIT_ACCESS=${ACCOUNTS_LIMIT_ACCESS:-authenticated} # default to authenticated access only
|
||||
depends_on:
|
||||
- accounts
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ function _M.is_authenticated()
|
|||
end
|
||||
|
||||
function _M.is_auth_required()
|
||||
return os.getenv("ACCOUNTS_AUTH_REQUIRED") == "true"
|
||||
return os.getenv("ACCOUNTS_LIMIT_ACCESS") == "authenticated"
|
||||
end
|
||||
|
||||
-- check whether access to portal should be restricted
|
||||
|
|
|
@ -29,7 +29,7 @@ worker_processes auto;
|
|||
env SKYNET_PORTAL_API;
|
||||
env SKYNET_SERVER_API;
|
||||
env PORTAL_MODULES;
|
||||
env ACCOUNTS_AUTH_REQUIRED;
|
||||
env ACCOUNTS_LIMIT_ACCESS;
|
||||
|
||||
events {
|
||||
worker_connections 8192;
|
||||
|
|
Reference in New Issue