This commit is contained in:
Pagwin 2023-11-10 23:41:27 -05:00
parent b39457e4c5
commit 2441610b51
No known key found for this signature in database
GPG key ID: F5FB283DD4B1A998
2 changed files with 3 additions and 4 deletions

View file

@ -2,10 +2,10 @@ version: "3"
# copied from the docker-compose I wrote specifically for the comments backend which was made referencing the invidious docker compose file which was very helpful https://github.com/iv-org/invidious/blob/master/docker-compose.yml
services:
website:
image: ghcr.io/pagwin-fedora/website_frontend:latest-comments
image: ghcr.io/pagwin-fedora/website_frontend:latest
restart: unless-stopped
ports:
- "8080:80"
- "2020:80"
depends_on:
- comments_backend
# need to specifically name it this unless you want to build the docker image in place

View file

@ -9,8 +9,7 @@ back = os.environ.get(var_name)
buf = str()
with open(file_name+".template") as file:
buf = file.read()
if back == None:
if back == None or back == "":
buf = re.sub("###{---(.|\n)*###---}", "", buf)
else:
# ${{\s*$var_name\s*}}