tweak srv
This commit is contained in:
parent
2475f17953
commit
feadbd010b
1 changed files with 4 additions and 0 deletions
|
@ -3,10 +3,14 @@
|
||||||
{
|
{
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
|
|
||||||
|
# nginx runs under ProtectHome=true which disallows reading anywhere
|
||||||
|
# in /home. So we need to use a different location.
|
||||||
users.users."up" = {
|
users.users."up" = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
home = /srv/up;
|
||||||
group = config.services.nginx.group;
|
group = config.services.nginx.group;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
homeMode = "750";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."srv.isomorphis.me" = {
|
services.nginx.virtualHosts."srv.isomorphis.me" = {
|
||||||
|
|
Loading…
Reference in a new issue