mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 05:40:52 +01:00
update core data
This commit is contained in:
parent
1981dc3113
commit
6018b615cc
1 changed files with 5 additions and 8 deletions
|
@ -75,12 +75,15 @@
|
|||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
services.openssh.settings.PermitRootLogin = "yes";
|
||||
services.openssh.settings.PasswordAuthentication = lib.mkForce true;
|
||||
|
||||
# Photoprism
|
||||
services.photoprism = {
|
||||
enable = true;
|
||||
port = 2342;
|
||||
originalsPath = "/data/photos";
|
||||
passwordFile = "/srv/photoprism";
|
||||
importPath = "import";
|
||||
address = "0.0.0.0";
|
||||
settings = {
|
||||
|
@ -97,7 +100,6 @@
|
|||
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
dataDir = "/data/mysql";
|
||||
package = pkgs.mariadb;
|
||||
ensureDatabases = [ "photoprism" ];
|
||||
ensureUsers = [{
|
||||
|
@ -119,15 +121,10 @@
|
|||
"photos.malka.family" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
http2 = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:2342";
|
||||
proxyPass = "http://0.0.0.0:2342";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
proxy_buffering off;
|
||||
proxy_http_version 1.1;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue