fix: start tailscale before forgejo
If tailscale is not up then we can't reach the database. Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
34bbab282c
commit
d5d3984557
1 changed files with 30 additions and 26 deletions
|
|
@ -63,7 +63,10 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.forgejo.preStart = ''
|
systemd.services.forgejo = {
|
||||||
|
requires = [ "tailscaled.service" ];
|
||||||
|
|
||||||
|
preStart = ''
|
||||||
auth="${lib.getExe config.services.forgejo.package} admin auth"
|
auth="${lib.getExe config.services.forgejo.package} admin auth"
|
||||||
|
|
||||||
echo "Trying to find existing sso configuration for Authelia"...
|
echo "Trying to find existing sso configuration for Authelia"...
|
||||||
|
|
@ -91,6 +94,7 @@ in
|
||||||
--auto-discover-url https://auth.escapeangle.com/.well-known/openid-configuration
|
--auto-discover-url https://auth.escapeangle.com/.well-known/openid-configuration
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."git.escapeangle.com" = {
|
services.nginx.virtualHosts."git.escapeangle.com" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue