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 # 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: services:
website: website:
image: ghcr.io/pagwin-fedora/website_frontend:latest-comments image: ghcr.io/pagwin-fedora/website_frontend:latest
restart: unless-stopped restart: unless-stopped
ports: ports:
- "8080:80" - "2020:80"
depends_on: depends_on:
- comments_backend - comments_backend
# need to specifically name it this unless you want to build the docker image in place # 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() buf = str()
with open(file_name+".template") as file: with open(file_name+".template") as file:
buf = file.read() buf = file.read()
if back == None or back == "":
if back == None:
buf = re.sub("###{---(.|\n)*###---}", "", buf) buf = re.sub("###{---(.|\n)*###---}", "", buf)
else: else:
# ${{\s*$var_name\s*}} # ${{\s*$var_name\s*}}