Skip to content

Commit

Permalink
Removed BASE_PATH from configuration
Browse files Browse the repository at this point in the history
Setting the BASE_PATH is a more involved process than just setting this variable.
To prevent surprises the option to set this via ENV variable was removed.
  • Loading branch information
tobiasge committed Apr 18, 2023
1 parent c8930e0 commit e707303
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions configuration/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ def _environ_get_and_map(variable_name: str, default: str | None = None, map_fn:
if 'BANNER_LOGIN' in environ:
BANNER_LOGIN = environ.get('BANNER_LOGIN', None)

# Base URL path if accessing NetBox within a directory. For example, if installed at http://example.com/netbox/, set:
# BASE_PATH = 'netbox/'
BASE_PATH = environ.get('BASE_PATH', '')

# Maximum number of days to retain logged changes. Set to 0 to retain changes indefinitely. (Default: 90)
if 'CHANGELOG_RETENTION' in environ:
CHANGELOG_RETENTION = _environ_get_and_map('CHANGELOG_RETENTION', None, _AS_INT)
Expand Down

0 comments on commit e707303

Please sign in to comment.