move and fix stuff
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
ae0d28abde
commit
23557c49a5
|
@ -7,9 +7,7 @@
|
||||||
*.pot
|
*.pot
|
||||||
*.pyc
|
*.pyc
|
||||||
__pycache__/
|
__pycache__/
|
||||||
local_settings.py
|
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
media
|
|
||||||
|
|
||||||
# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
|
# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
|
||||||
# in your Git repository. Update and uncomment the following line accordingly.
|
# in your Git repository. Update and uncomment the following line accordingly.
|
||||||
|
@ -192,10 +190,8 @@ pyvenv.cfg
|
||||||
pip-selfcheck.json
|
pip-selfcheck.json
|
||||||
|
|
||||||
# End of https://www.gitignore.io/api/python,django
|
# End of https://www.gitignore.io/api/python,django
|
||||||
/static/
|
*.env.yml
|
||||||
local.env.yml
|
|
||||||
|
|
||||||
media/
|
|
||||||
*mmdb
|
*mmdb
|
||||||
|
|
||||||
.idea/
|
.idea/
|
||||||
|
|
|
@ -17,7 +17,9 @@ from authentik.stages.password import BACKEND_APP_PASSWORD, BACKEND_INBUILT, BAC
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).absolute().parent.parent.parent
|
BASE_DIR = Path(__file__).absolute().parent.parent.parent
|
||||||
STATICFILES_DIRS = [BASE_DIR / Path("web")]
|
STATICFILES_DIRS = [BASE_DIR / Path("web")]
|
||||||
MEDIA_ROOT = BASE_DIR / Path("media")
|
MEDIA_ROOT = Path(CONFIG.get("paths.media"))
|
||||||
|
if not MEDIA_ROOT.exists():
|
||||||
|
MEDIA_ROOT.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
DEBUG = CONFIG.get_bool("debug")
|
DEBUG = CONFIG.get_bool("debug")
|
||||||
SECRET_KEY = CONFIG.get("secret_key")
|
SECRET_KEY = CONFIG.get("secret_key")
|
||||||
|
|
|
@ -15,7 +15,6 @@ with open("local.env.yml", "w", encoding="utf-8") as _config:
|
||||||
"outposts": {
|
"outposts": {
|
||||||
"container_image_base": "ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s",
|
"container_image_base": "ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s",
|
||||||
},
|
},
|
||||||
"paths.blueprints": "./blueprints",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"cert_discovery": "./data/certs",
|
"cert_discovery": "./data/certs",
|
||||||
"media": "./data/media",
|
"media": "./data/media",
|
||||||
|
@ -23,7 +22,7 @@ with open("local.env.yml", "w", encoding="utf-8") as _config:
|
||||||
"blueprints": "./blueprints",
|
"blueprints": "./blueprints",
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"processors": {
|
"context_processors": {
|
||||||
"geoip": "tests/GeoLite2-City-Test.mmdb",
|
"geoip": "tests/GeoLite2-City-Test.mmdb",
|
||||||
"asn": "tests/GeoLite2-ASN-Test.mmdb",
|
"asn": "tests/GeoLite2-ASN-Test.mmdb",
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue