nixos/services: add default website on nginx
This commit is contained in:
+12
-6
@@ -1,4 +1,4 @@
|
||||
{ config, ... }:
|
||||
{ config, self, ... }:
|
||||
let
|
||||
inherit (config.networking) fqdn;
|
||||
|
||||
@@ -32,11 +32,17 @@ in
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
|
||||
# services.nginx.virtualHosts."${fqdn}" = {
|
||||
# addSSL = true;
|
||||
# root = "/var/www/myhost.org";
|
||||
# default = true;
|
||||
# };
|
||||
virtualHosts."${fqdn}" = mkVhost {
|
||||
default = true;
|
||||
|
||||
locations."/" = {
|
||||
root = "${self.pins.website}/web-root";
|
||||
|
||||
extraConfig = ''
|
||||
ssi on;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."git.${fqdn}" = mkVhost {
|
||||
locations."/" = mkProxy config.services.gitea.settings.server.HTTP_PORT;
|
||||
|
||||
+14
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user