Skip to content

Commit

Permalink
Merge pull request #4 from geniusdynamics/dev
Browse files Browse the repository at this point in the history
correct HOST
  • Loading branch information
compgeniuses authored Jul 30, 2024
2 parents b816be5 + a25680e commit 5f9571f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ data = json.load(sys.stdin)

# Configure HOST
HOST = data.get('host')
SERVER_HOST = "https://"+host
agent.set_env('APP_URL', SERVER_HOST)
SERVER_HOST = "https://"+HOST

rdb = agent.redis_connect(use_replica=True)
smtp_settings = agent.get_smarthost_settings(rdb)
Expand All @@ -42,7 +41,8 @@ smtp_config = {
'SMTP_HOST': SMTP_HOST,
'SMTP_PORT': SMTP_PORT,
'SMTP_USERNAME': SMTP_USERNAME,
'SMTP_PASSWORD': SMTP_PASSWORD
'SMTP_PASSWORD': SMTP_PASSWORD,
'APP_URL': SERVER_HOST
}
agent.write_envfile("smtp-config.env",smtp_config)

Expand Down
2 changes: 1 addition & 1 deletion imageroot/etc/state-include.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# List here what you want to save during backup : volumes or file Path


state/docmost.sql
state/docmost.pg_dump
state/database.env
state/app.env
state/smtp-config.env
Expand Down
1 change: 0 additions & 1 deletion imageroot/systemd/user/docmost-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/docmost-app.pid \
--volume docmost-app:/app/data/storage:Z \
--env-file=%S/state/app.env \
--env-file=%S/state/smtp-config.env \
--env APP_URL=${APP_URL} \
${DOCMOST_IMAGE}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/docmost-app.ctr-id -t 10
ExecReload=/usr/bin/podman kill -s HUP docmost-app
Expand Down
Binary file modified ui/src/assets/module_default_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5f9571f

Please sign in to comment.