Delete changes to config that I used during dev

This reverts part of commit 808fe128fc.
pull/206/head
transbitch 2023-10-11 11:35:20 -04:00
parent 808fe128fc
commit dd7b8c75f3
2 changed files with 2 additions and 5 deletions

View File

@ -34,7 +34,7 @@ services:
postgres:
container_name: "postgres"
image: postgres
command: ["postgres"] #, "-c", "log_statement=all"]
command: ["postgres", "-c", "log_statement=all"]
volumes:
- "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql"
- "./seed-users.sql:/docker-entrypoint-initdb.d/01-seed-users.sql"

View File

@ -59,14 +59,13 @@ DELETE_EDIT_RATELIMIT = "10/minute;50/day"
PUSH_NOTIF_LIMIT = 1000
IS_LOCALHOST = SITE.startswith("localhost") or SITE.startswith("127.0.0.1") or SITE.startswith("192.168.") or SITE.endswith(".local")
IS_LOCALHOST = SITE.startswith("localhost:") or SITE.startswith("127.0.0.1") or SITE.startswith("192.168.") or SITE.endswith(".local")
print(f"IS_LOCALHOST: {IS_LOCALHOST}")
if IS_LOCALHOST:
SITE_FULL = 'http://' + SITE
SITE_IMAGES = SITE
SITE_FULL_IMAGES = f'http://{SITE_IMAGES}'
print("here")
else:
SITE_FULL = 'https://' + SITE
SITE_IMAGES = 'i.' + SITE
@ -1090,5 +1089,3 @@ if not IS_LOCALHOST:
with open("includes/content-security-policy", "w") as f:
f.write(f'add_header Content-Security-Policy "{csp}";')
print(f"SITE_FULL_IMAGES: {SITE_FULL_IMAGES}")