Skip to content

Commit

Permalink
Merge pull request #3491 from TheSpaceDevs/jet
Browse files Browse the repository at this point in the history
chore: add/fix jet
  • Loading branch information
derkweijers authored Mar 19, 2024
2 parents 21d47b7 + 2a9b780 commit 86a5592
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions snapy/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,15 @@
# STATIC_ROOT = BASE_DIR / "staticfiles"
USE_S3 = env.bool("USE_S3", False)
if USE_S3:
AWS_QUERYSTRING_AUTH = False
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STORAGE_BUCKET_NAME")
AWS_DEFAULT_ACL = "public-read"
AWS_S3_ENDPOINT_URL = "https://ams3.digitaloceanspaces.com"
AWS_S3_OBJECT_PARAMETERS = {"CacheControl": "max-age=86400"}
AWS_PRELOAD_METADATA = True
AWS_IS_GZIPPED = True

# static settings
AWS_LOCATION = "static"
Expand Down
8 changes: 4 additions & 4 deletions snapy/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"""

from django.contrib import admin
from django.urls import include, path, re_path
from django.urls import include, re_path

urlpatterns = [
path("jet/", include("jet.urls", "jet")), # Django JET URLS
path("jet/dashboard/", include("jet.dashboard.urls", "jet-dashboard")), # Django JET dashboard URLS
re_path(r"^v4/", include(("api.urls", "api"), namespace="v4")),
re_path(r"^v4/jet/", include("jet.urls", "jet")), # Django JET URLS
re_path(r"^v4/jet/dashboard/", include("jet.dashboard.urls", "jet-dashboard")), # Django JET dashboard URLS
re_path(r"^v4/admin/", admin.site.urls),
re_path(r"^v4/", include(("api.urls", "api"), namespace="v4")),
]

0 comments on commit 86a5592

Please sign in to comment.