<3
Some checks are pending
Test Nix flake / Test nix flake (push) Waiting to run

This commit is contained in:
XenGi 2026-11-24 21:24:12 +01:00
commit 3934897166
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
3 changed files with 8 additions and 19 deletions

View file

@ -5,7 +5,6 @@
../common.nix
../../services/openssh.nix
../../services/prometheus-node.nix
../../services/podman.nix
./forgejo-runner.nix
];

View file

@ -1,6 +1,10 @@
{ config, pkgs, ... }:
{
imports = [
../../services/podman.nix
];
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.snowden = {

View file

@ -2,8 +2,6 @@
let
fqdn = "prusa-connect.club.berlin.ccc.de";
ipv6 = "2001:678:560:23:be24:11ff:fe0a:7eff";
ipv4 = "172.23.42.30";
in
{
imports = [
@ -11,16 +9,9 @@ in
../../services/podman.nix
];
networking.interfaces.ens3.ipv6.addresses = [
{
address = ipv6;
prefixLength = 64;
}
];
virtualisation.oci-containers.containers.prusa-connect = {
labels."io.containers.autoupdate" = "registry";
image = "ghcr.io/prusa3d/prusa-connect:latest";
image = "ghcr.io/prusa3d/prusa-connect:0.1.0-beta.2";
environment = {};
ports = [ "127.0.0.1:8080:8080" ];
#extraOptions = [ "--network=host" ];
@ -40,11 +31,7 @@ in
quic = true;
kTLS = true;
forceSSL = true;
useACMEHost = fqdn;
listenAddresses = [
"[${ipv6}]"
ipv4
];
enableACME = true;
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
@ -52,12 +39,11 @@ in
extraConfig = ''
add_header Alt-Svc 'h3=":443"; ma=86400';
client_max_body_size 128M;
proxy_http_version 1.1;
proxy_set_header Forwarded "$proxy_forwarded_for_element;$proxy_forwarded_by_element;host=$host;proto=$scheme";
'';
};
extraConfig = ''
error_log syslog:server=unix:/dev/log,tag=${builtins.replaceStrings [ "." ] [ "_" ] fqdn} warn;
proxy_set_header Forwarded "$proxy_forwarded_for_element;$proxy_forwarded_by_element;host=$host;proto=$scheme";
error_log syslog:server=unix:/dev/log,tag=prusa_connect_club_berlin_ccc_de warn;
access_log syslog:server=unix:/dev/log vhost_combined;
'';
};