declaratively create forgejo ssh
This commit is contained in:
parent
f2d3c7c728
commit
7795562199
1 changed files with 4 additions and 0 deletions
|
|
@ -4,6 +4,10 @@
|
||||||
systemd.services.forgejo = {
|
systemd.services.forgejo = {
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
preStart = ''
|
||||||
|
mkdir -p /var/lib/forgejo/.ssh
|
||||||
|
chmod 700 /var/lib/forgejo/.ssh
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [
|
networking.firewall.interfaces.wg0.allowedTCPPorts = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue