2 Commits

Author SHA1 Message Date
javalsai a78752607f nixos/services: add default website on nginx
Check / Nix flake (push) Failing after 9s
Lint / Nix expressions (push) Failing after 12s
2026-05-04 04:55:58 +02:00
javalsai e0bd689d4f nixos/services: disable nginx proxy buffering 2026-05-04 04:55:40 +02:00
2 changed files with 31 additions and 7 deletions
+17 -6
View File
@@ -1,4 +1,4 @@
{ config, ... }: { config, self, ... }:
let let
inherit (config.networking) fqdn; inherit (config.networking) fqdn;
@@ -15,6 +15,11 @@ let
mkProxy = port: { mkProxy = port: {
proxyPass = "http://127.0.0.1:${toString port}/"; proxyPass = "http://127.0.0.1:${toString port}/";
extraConfig = ''
proxy_buffering off;
proxy_request_buffering off;
'';
}; };
in in
{ {
@@ -27,11 +32,17 @@ in
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedOptimisation = true; recommendedOptimisation = true;
# services.nginx.virtualHosts."${fqdn}" = { virtualHosts."${fqdn}" = mkVhost {
# addSSL = true; default = true;
# root = "/var/www/myhost.org";
# default = true; locations."/" = {
# }; root = "${self.pins.website}/web-root";
extraConfig = ''
ssi on;
'';
};
};
virtualHosts."git.${fqdn}" = mkVhost { virtualHosts."git.${fqdn}" = mkVhost {
locations."/" = mkProxy config.services.gitea.settings.server.HTTP_PORT; locations."/" = mkProxy config.services.gitea.settings.server.HTTP_PORT;
+14 -1
View File
@@ -1,4 +1,17 @@
{ {
"pins": {}, "pins": {
"website": {
"type": "Git",
"repository": {
"type": "Git",
"url": "https://git.javalsai.tuxcord.net/tuxcord/website.git"
},
"branch": "main",
"submodules": false,
"revision": "a9f523c268062c0c4a8167b719be15e3e4b3ef88",
"url": null,
"hash": "0ql14xjz0prvy3rdx6zkbpsjxvx40ivdzrwzdgfsk07jg07aki05"
}
},
"version": 5 "version": 5
} }