forked from WHOIGit/ooicgsn-roundabout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial refactor of serial number functions to .env variables
- Loading branch information
1 parent
ec50826
commit 44c9aaf
Showing
5 changed files
with
100 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,20 @@ REDIS_URL=redis://redis:6379/0 | |
# ------------------------------------------------------------------------------ | ||
DJANGO_SECRET_KEY=9vgy4xpSMfbmesHKI5mJjZn2V6tHZhQHgSmvAoGzq4HnLpX1LagUTGiYwHJQNWCo | ||
|
||
# Roundabout Specific Django settings | ||
# ------------------------------------------------------------------------------ | ||
|
||
# Settings for initial superuser creation | ||
DJANGO_SU_NAME=admin | ||
[email protected] | ||
DJANGO_SU_PASSWORD=admin | ||
|
||
# Settings for serial number generation functions | ||
# Default pattern - "1, 2, 3, ... etc." | ||
RDB_SERIALNUMBER_CREATE=True | ||
|
||
# Recommended OOI pattern - Part Number + "-20001" fragment | ||
RDB_SERIALNUMBER_OOI_DEFAULT_PATTERN=True | ||
|
||
# Short numbers for cable labels - Part Number + "-01" fragment | ||
RDB_SERIALNUMBER_OOI_WETCABLE_PATTERN=False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,6 @@ DJANGO_SECRET_KEY=9vgy4xpSMfbmesHKI5mJjZn2V6tHZhQHgSmvAoGzq4HnLpX1LagUTGiYwHJQNW | |
DJANGO_ADMIN_URL=admin-django/ | ||
DJANGO_ALLOWED_HOSTS=.roundabout.whoi.edu,.localhost | ||
|
||
# Set default super user creds on app start up | ||
DJANGO_SU_NAME=admin | ||
[email protected] | ||
DJANGO_SU_PASSWORD=admin | ||
|
||
# Security | ||
# ------------------------------------------------------------------------------ | ||
# TIP: better off using DNS, however, redirect is OK too | ||
|
@@ -40,3 +35,21 @@ WEB_CONCURRENCY=4 | |
# Redis | ||
# ------------------------------------------------------------------------------ | ||
REDIS_URL=redis://redis:6379/0 | ||
|
||
# Roundabout Specific Django settings | ||
# ------------------------------------------------------------------------------ | ||
|
||
# Settings for initial superuser creation | ||
DJANGO_SU_NAME=admin | ||
[email protected] | ||
DJANGO_SU_PASSWORD=admin | ||
|
||
# Settings for serial number generation functions | ||
# Default pattern - "1, 2, 3, ... etc." | ||
RDB_SERIALNUMBER_CREATE=True | ||
|
||
# Recommended OOI pattern - Part Number + "-20001" fragment | ||
RDB_SERIALNUMBER_OOI_DEFAULT_PATTERN=True | ||
|
||
# Short numbers for cable labels - Part Number + "-01" fragment | ||
RDB_SERIALNUMBER_OOI_WETCABLE_PATTERN=False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters