configure diday website dpeloyment
This commit is contained in:
parent
f27d3ba113
commit
be8581c2d0
6 changed files with 170 additions and 6 deletions
|
|
@ -1,6 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
runnerInstances = lib.attrValues config.services.gitea-actions-runner.instances;
|
||||
runnerCachePorts = lib.map (i: i.settings.cache.proxy_port) runnerInstances;
|
||||
in {
|
||||
networking = {
|
||||
interfaces.net0 = {
|
||||
ipv4.addresses = [
|
||||
|
|
@ -19,4 +21,7 @@
|
|||
matchConfig.MACAddress = "1E:E0:4E:D0:DA:BE";
|
||||
linkConfig.Name = "net0";
|
||||
};
|
||||
|
||||
# open ports for runner cache proxy so that we can use the cache action
|
||||
networking.firewall.allowedTCPPorts = runnerCachePorts;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue