Move /srv/* into /srv/www/*
This commit is contained in:
parent
0e4a2c5b9d
commit
fee81ed3c7
|
@ -3,10 +3,10 @@
|
||||||
services.caddy.virtualHosts."files.chandlerswift.com".extraConfig = ''
|
services.caddy.virtualHosts."files.chandlerswift.com".extraConfig = ''
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
file_server
|
file_server
|
||||||
root * /srv/files.chandlerswift.com
|
root * /srv/www/files.chandlerswift.com
|
||||||
'';
|
'';
|
||||||
systemd.tmpfiles.settings."10-files-chandlerswift-com" = {
|
systemd.tmpfiles.settings."10-files-chandlerswift-com" = {
|
||||||
"/srv/files.chandlerswift.com" = {
|
"/srv/www/files.chandlerswift.com" = {
|
||||||
d = {};
|
d = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
services.caddy.virtualHosts."home.chandlerswift.com".extraConfig = ''
|
services.caddy.virtualHosts."home.chandlerswift.com".extraConfig = ''
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
file_server
|
file_server
|
||||||
root * /srv/home.chandlerswift.com
|
root * /srv/www/home.chandlerswift.com
|
||||||
reverse_proxy /grafana/* localhost:3000
|
reverse_proxy /grafana/* localhost:3000
|
||||||
# hide .git # ???
|
# hide .git # ???
|
||||||
'';
|
'';
|
||||||
systemd.tmpfiles.settings."10-home-chandlerswift-com" = {
|
systemd.tmpfiles.settings."10-home-chandlerswift-com" = {
|
||||||
"/srv/home.chandlerswift.com" = {
|
"/srv/www/home.chandlerswift.com" = {
|
||||||
d = {};
|
d = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
services.caddy.virtualHosts."maps.chandlerswift.com".extraConfig = ''
|
services.caddy.virtualHosts."maps.chandlerswift.com".extraConfig = ''
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
file_server
|
file_server
|
||||||
root * /srv/maps.chandlerswift.com
|
root * /srv/www/maps.chandlerswift.com
|
||||||
# hide .git # ???
|
# hide .git # ???
|
||||||
'';
|
'';
|
||||||
systemd.tmpfiles.settings."10-maps-chandlerswift-com" = {
|
systemd.tmpfiles.settings."10-maps-chandlerswift-com" = {
|
||||||
"/srv/maps.chandlerswift.com" = {
|
"/srv/www/maps.chandlerswift.com" = {
|
||||||
d = {};
|
d = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
app = "stjohnscccc";
|
app = "stjohnscccc";
|
||||||
domain = "${app}.chandlerswift.com"; # TODO
|
domain = "${app}.chandlerswift.com"; # TODO
|
||||||
dataDir = "/srv/http/${domain}";
|
dataDir = "/srv/www/http/${domain}";
|
||||||
in {
|
in {
|
||||||
services.phpfpm.pools.${app} = {
|
services.phpfpm.pools.${app} = {
|
||||||
user = app;
|
user = app;
|
||||||
|
@ -35,7 +35,7 @@ in {
|
||||||
};
|
};
|
||||||
users.groups.${app} = {};
|
users.groups.${app} = {};
|
||||||
systemd.tmpfiles.settings."10-stjohnscccc.org" = {
|
systemd.tmpfiles.settings."10-stjohnscccc.org" = {
|
||||||
"/srv/stjohnscccc.org" = {
|
"/srv/www/stjohnscccc.org" = {
|
||||||
d = {};
|
d = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
services.caddy.virtualHosts."swiftgang.net".extraConfig = ''
|
services.caddy.virtualHosts."swiftgang.net".extraConfig = ''
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
file_server
|
file_server
|
||||||
root * /srv/swiftgang.net
|
root * /srv/www/swiftgang.net
|
||||||
'';
|
'';
|
||||||
systemd.tmpfiles.settings."10-swiftgang-net" = {
|
systemd.tmpfiles.settings."10-swiftgang-net" = {
|
||||||
"/srv/swiftgang.net" = {
|
"/srv/www/swiftgang.net" = {
|
||||||
d = {};
|
d = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue