hippocampus: dawarich: fix
This commit is contained in:
@@ -2,12 +2,19 @@
|
|||||||
services.dawarich = {
|
services.dawarich = {
|
||||||
enable = true;
|
enable = true;
|
||||||
webPort = 7392;
|
webPort = 7392;
|
||||||
|
configureNginx = false;
|
||||||
|
localDomain = "location.crompton.cc";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts = {
|
services.caddy.virtualHosts = {
|
||||||
"location.crompton.cc" = {
|
${config.services.dawarich.localDomain} = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy localhost:${toString config.services.dawarich.webPort}
|
reverse_proxy localhost:${toString config.services.dawarich.webPort}
|
||||||
|
encode brotli {
|
||||||
|
match {
|
||||||
|
content_type text/css text/plain text/xml text/x-component text/javascript application/x-javascript application/javascript application/json application/manifest+json application/vnd.api+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype image/svg+xml image/x-icon image/vnd.microsoft.icon font/ttf font/eot font/otf font/opentype
|
||||||
|
}
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user