Skip to content

Commit

Permalink
feat: added admin password
Browse files Browse the repository at this point in the history
  • Loading branch information
kemboi22 committed Aug 3, 2024
1 parent b563f2a commit 1cb8005
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ import agent
# Try to parse the stdin as JSON.
# If parsing fails, output everything to stderr
data = json.load(sys.stdin)

ADMIN_PASSWORD = data.get('ADMIN_PASSWORD', "password")
#This is specific to you module, so you need to change it accordingly.
HOST = data.get('host')
chibi = {
"BASE_API_URL": 'chibisafe-server:8000',
"BASE_URL": "https://"+HOST
"BASE_URL": "https://"+HOST,
"ADMIN_PASSWORD": ADMIN_PASSWORD
}
agent.write_envfile('chibi.env', chibi)
#agent.dump_env()
6 changes: 3 additions & 3 deletions imageroot/systemd/user/chibisafe.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

[Unit]
Description=Podman chibisafe.service
Requires=chibisafe-server.service chibisafe-app.service
Before=chibisafe-server.service chibisafe-app.service
Requires=chibisafe-server.service chibisafe-app.service caddy-app.service
Before=chibisafe-server.service chibisafe-app.service caddy-app.service

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Expand All @@ -22,7 +22,7 @@ ExecStartPre=/bin/rm -f %t/chibisafe.pid %t/chibisafe.pod-id
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/chibisafe.pid \
--pod-id-file %t/chibisafe.pod-id \
--name chibisafe \
--publish 127.0.0.1:${TCP_PORT}:8001 \
--publish 127.0.0.1:${TCP_PORT}:80 \
--replace
ExecStart=/usr/bin/podman pod start --pod-id-file %t/chibisafe.pod-id
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/chibisafe.pod-id -t 10
Expand Down

0 comments on commit 1cb8005

Please sign in to comment.