loptland: nginx maybe this helps?

This commit is contained in:
Christoph Hollizeck 2024-11-06 20:11:50 +01:00
parent 2fc804dc9f
commit 4b8bd30521
Signed by: Daholli
GPG key ID: 1763BB530F50279E

View file

@ -16,8 +16,6 @@ in
{
imports = [ ./hardware.nix ];
environment.systemPackages = [ pkgs.forgejo-cli ];
sops.secrets = {
forgejo_db_password = {
inherit sopsFile;
@ -34,13 +32,22 @@ in
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"git.${domainName}" = {
locations."/" = {
proxyPass = "http://localhost:${toString forgejoPort}/";
};
};
"${domainName}" = {
locations."/" = {
return = "404 This Site does not exist yet";
};
};
};
};
services.forgejo = {