This commit is contained in:
parent
a0de7a5674
commit
3934897166
3 changed files with 8 additions and 19 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
../common.nix
|
../common.nix
|
||||||
../../services/openssh.nix
|
../../services/openssh.nix
|
||||||
../../services/prometheus-node.nix
|
../../services/prometheus-node.nix
|
||||||
../../services/podman.nix
|
|
||||||
./forgejo-runner.nix
|
./forgejo-runner.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
../../services/podman.nix
|
||||||
|
];
|
||||||
|
|
||||||
services.gitea-actions-runner = {
|
services.gitea-actions-runner = {
|
||||||
package = pkgs.forgejo-runner;
|
package = pkgs.forgejo-runner;
|
||||||
instances.snowden = {
|
instances.snowden = {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
fqdn = "prusa-connect.club.berlin.ccc.de";
|
fqdn = "prusa-connect.club.berlin.ccc.de";
|
||||||
ipv6 = "2001:678:560:23:be24:11ff:fe0a:7eff";
|
|
||||||
ipv4 = "172.23.42.30";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -11,16 +9,9 @@ in
|
||||||
../../services/podman.nix
|
../../services/podman.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.interfaces.ens3.ipv6.addresses = [
|
|
||||||
{
|
|
||||||
address = ipv6;
|
|
||||||
prefixLength = 64;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.prusa-connect = {
|
virtualisation.oci-containers.containers.prusa-connect = {
|
||||||
labels."io.containers.autoupdate" = "registry";
|
labels."io.containers.autoupdate" = "registry";
|
||||||
image = "ghcr.io/prusa3d/prusa-connect:latest";
|
image = "ghcr.io/prusa3d/prusa-connect:0.1.0-beta.2";
|
||||||
environment = {};
|
environment = {};
|
||||||
ports = [ "127.0.0.1:8080:8080" ];
|
ports = [ "127.0.0.1:8080:8080" ];
|
||||||
#extraOptions = [ "--network=host" ];
|
#extraOptions = [ "--network=host" ];
|
||||||
|
|
@ -40,11 +31,7 @@ in
|
||||||
quic = true;
|
quic = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = fqdn;
|
enableACME = true;
|
||||||
listenAddresses = [
|
|
||||||
"[${ipv6}]"
|
|
||||||
ipv4
|
|
||||||
];
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
|
@ -52,12 +39,11 @@ in
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
add_header Alt-Svc 'h3=":443"; ma=86400';
|
add_header Alt-Svc 'h3=":443"; ma=86400';
|
||||||
client_max_body_size 128M;
|
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 = ''
|
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;
|
access_log syslog:server=unix:/dev/log vhost_combined;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue