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
|
||||
*.pyc
|
||||
__pycache__/
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
media
|
||||
|
||||
# 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.
|
||||
|
@ -192,10 +190,8 @@ pyvenv.cfg
|
|||
pip-selfcheck.json
|
||||
|
||||
# End of https://www.gitignore.io/api/python,django
|
||||
/static/
|
||||
local.env.yml
|
||||
*.env.yml
|
||||
|
||||
media/
|
||||
*mmdb
|
||||
|
||||
.idea/
|
||||
|
|
|
@ -17,7 +17,9 @@ from authentik.stages.password import BACKEND_APP_PASSWORD, BACKEND_INBUILT, BAC
|
|||
|
||||
BASE_DIR = Path(__file__).absolute().parent.parent.parent
|
||||
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")
|
||||
SECRET_KEY = CONFIG.get("secret_key")
|
||||
|
|
|
@ -15,7 +15,6 @@ with open("local.env.yml", "w", encoding="utf-8") as _config:
|
|||
"outposts": {
|
||||
"container_image_base": "ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s",
|
||||
},
|
||||
"paths.blueprints": "./blueprints",
|
||||
"paths": {
|
||||
"cert_discovery": "./data/certs",
|
||||
"media": "./data/media",
|
||||
|
@ -23,7 +22,7 @@ with open("local.env.yml", "w", encoding="utf-8") as _config:
|
|||
"blueprints": "./blueprints",
|
||||
},
|
||||
"events": {
|
||||
"processors": {
|
||||
"context_processors": {
|
||||
"geoip": "tests/GeoLite2-City-Test.mmdb",
|
||||
"asn": "tests/GeoLite2-ASN-Test.mmdb",
|
||||
}
|
||||
|
|
Reference in New Issue