git changes for soft-serve

This commit is contained in:
James Eversole 2024-02-08 13:05:20 -06:00
parent 441e7f2c35
commit 606b54f843
2 changed files with 14 additions and 4 deletions

View File

@ -75,8 +75,12 @@
softserve = {
image = "charmcli/soft-serve:v0.7.3";
ports = [ "23231:23231" "23232:23232"
"23233:23233" "9418:9418" ];
ports = [
"23231:23231"
"23232:23232"
"23233:23233"
"9418:9418"
];
volumes = [ "/home/sezycei/srv/containerdata/soft-serve/data:/soft-serve" ];
environment = {
SOFT_SERVE_NAME = "git.eversole.co";

View File

@ -1,4 +1,4 @@
{ pkgs, config, ... }: {
{ config, lib, pkgs,... }: {
services.nginx = {
enable = true;
@ -58,7 +58,13 @@
"food.eversole.co" = proxied {
target = "http://127.0.0.1:52230";
};
"git.eversole.co" = static { dir = "/var/www/jame.su"; };
"git.eversole.co" = {
enableACME = true;
forceSSL = true;
locations."/" = { root = "/var/www/git.eversole.co"; tryFiles = "$uri $uri/ @git"; };
locations."/purr".return = "301 https://git.eversole.co";
locations."@git" = { proxyPass = "http://127.0.0.1:23232"; priority = 600; };
};
"graf.matri.cx" = { root = "/var/www/graf.matri.cx"; }; # refer to /monitoring/nginx.nix
"hydra.matri.cx" = proxied {
target = "http://127.0.0.1:3034";