Skip to content

Commit

Permalink
Synced settings.py from branch in stackn repo (#43)
Browse files Browse the repository at this point in the history
Co-authored-by: Hamza <[email protected]>
Co-authored-by: Johan Alfredéen <[email protected]>
Co-authored-by: Nikita Churikov <[email protected]>
Co-authored-by: Hamza <[email protected]>
  • Loading branch information
5 people authored Aug 4, 2024
1 parent 0eb96bf commit 56a3729
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
6 changes: 3 additions & 3 deletions serve/templates/network-policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- to:
- namespaceSelector:
matchLabels:
name: kube-system
kubernetes.io/metadata.name: kube-system
ports:
- protocol: UDP
port: 53
Expand Down Expand Up @@ -362,12 +362,12 @@ spec:
- to:
- namespaceSelector:
matchExpressions:
- key: name
- key: kubernetes.io/metadata.name
operator: In
values:
- loki-stack
matchLabels:
name: loki-stack
kubernetes.io/metadata.name: loki-stack
podSelector:
matchLabels:
web: studio-web
Expand Down
27 changes: 12 additions & 15 deletions serve/templates/studio-settings-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,15 @@ data:
'django_structlog',
'tagulous',
'guardian',
"crispy_forms",
"crispy_bootstrap5",
"portal",
"projects",
"models",
"monitor",
"apps",
"api",
"customtags",
"news",
"axes", # django-axes for brute force login protection
"django_password_validators", # django-password-validators for password validation
"collections_module",
] + DJANGO_WIKI_APPS
{{ if .Values.studio.custom_apps.enabled }}
Expand Down Expand Up @@ -177,6 +175,9 @@ data:
# Main Url conf for loading all the routing path in Studio
ROOT_URLCONF = 'studio.urls'
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrap5"
# Tagulous serialization settings
SERIALIZATION_MODULES = {
'xml': 'tagulous.serializers.xml_serializer',
Expand Down Expand Up @@ -310,8 +311,6 @@ data:
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Media Files for Studio apps
#MEDIA_URL = {{ .Values.studio.media.mount_path | quote }}
Expand Down Expand Up @@ -356,7 +355,7 @@ data:
# Apps
APPS_MODEL = "apps.Apps"
APPINSTANCE_MODEL = "apps.AppInstance"
APPINSTANCE_MODEL = "apps.BaseAppInstance"
APPCATEGORIES_MODEL ="apps.AppCategories"
# Models
Expand All @@ -366,7 +365,7 @@ data:
PROJECTS_MODEL = "projects.Project"
PROJECTLOG_MODEL = "projects.ProjectLog"
ENVIRONMENT_MODEL = "projects.Environment"
RELEASENAME_MODEL = "projects.ReleaseName"
# Portal
PUBLISHEDMODEL_MODEL = "portal.PublishedModel"
PUBLICMODELOBJECT_MODEL = "portal.PublicModelObject"
Expand Down Expand Up @@ -415,14 +414,11 @@ data:
VERSION = {{ .Values.studio.version | quote }}
MIGRATION_MODULES = {
'apps': 'studio.migrations.apps',
'models': 'studio.migrations.models',
'monitor': 'studio.migrations.monitor',
'portal': 'studio.migrations.portal',
'projects': 'studio.migrations.projects',
'apps': 'apps.migrations',
'models': 'models.migrations',
'portal': 'portal.migrations',
'projects': 'projects.migrations',
"common": "common.migrations",
"news": "news.migrations",
"collections_module": "collections_module.migrations",
}
{{ if .Values.studio.custom_migrations.enabled }}
Expand Down Expand Up @@ -453,6 +449,7 @@ data:
"combiner": 0,
"mongodb": 0,
"netpolicy": 0,
"filemanager": 1,
}
{{ if .Values.loki.enabled }}
LOKI_SVC = {{ .Values.loki.host | quote}}
Expand Down

0 comments on commit 56a3729

Please sign in to comment.