Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

SkynetLabs/webportal-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release

Webportal NGINX

This repo contains the NGINX web server for the Skynet Webportals.

Configurable environment variables

ACCOUNTS_REDIRECT_URL

Use this variable to redirect traffic coming to account.<PORTAL_DOMAIN> subdomain. The redirect will be active in two scenarios:

  • Whenever ACCOUNTS_REDIRECT_URL is not empty
  • Whenever accounts module is disabled on your portal (in this case, if ACCOUNTS_REDIRECT_URL is not configured, users will be redirected to PORTAL_DOMAIN by default).

This redirect will use HTTP status code 302 (temporary) by default. Use ACCOUNTS_REDIRECT_STATUS_CODE variable to customize this behavior.

ACCOUNTS_REDIRECT_STATUS_CODE

Use this variable to configure the HTTP status code used for redirections described in ACCOUNTS_REDIRECT_URL variable.