Skip to content

Commit

Permalink
feat: added caddy-app.service
Browse files Browse the repository at this point in the history
  • Loading branch information
kemboi22 committed Aug 3, 2024
1 parent db3182c commit 0db8b0a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data = json.load(sys.stdin)
HOST = data.get('host')
chibi = {
"BASE_API_URL": 'chibisafe-server:8000',
"BASE_URL": ":80"
"BASE_URL": "https://"+HOST
}
agent.write_envfile('chibi.env', chibi)
#agent.dump_env()
2 changes: 1 addition & 1 deletion imageroot/systemd/user/caddy-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[Unit]
Description=Podman caddy-app.service
BindsTo=chibisafe.service
After=chibisafe.service chibisafe-server.service chibisafe-app.service caddy-app.service
After=chibisafe.service

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Expand Down
2 changes: 1 addition & 1 deletion imageroot/systemd/user/chibisafe-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[Unit]
Description=Podman chibisafe-app.service
BindsTo=chibisafe.service
After=chibisafe.service chibisafe-server.service
After=chibisafe.service caddy-app.service chibisafe-server.service

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Expand Down
2 changes: 1 addition & 1 deletion imageroot/systemd/user/chibisafe-server.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[Unit]
Description=Podman chibisafe-server.service
BindsTo=chibisafe.service
After=chibisafe.service
After=chibisafe.service caddy-app.service

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Expand Down
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 0db8b0a

Please sign in to comment.