mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-01 01:30:53 +02: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.tailscale.enable = true;
|
||||||
|
|
||||||
|
services.openssh.settings.PermitRootLogin = "yes";
|
||||||
|
services.openssh.settings.PasswordAuthentication = lib.mkForce true;
|
||||||
|
|
||||||
# Photoprism
|
# Photoprism
|
||||||
services.photoprism = {
|
services.photoprism = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 2342;
|
port = 2342;
|
||||||
originalsPath = "/data/photos";
|
originalsPath = "/data/photos";
|
||||||
|
passwordFile = "/srv/photoprism";
|
||||||
importPath = "import";
|
importPath = "import";
|
||||||
address = "0.0.0.0";
|
address = "0.0.0.0";
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -97,7 +100,6 @@
|
||||||
|
|
||||||
services.mysql = {
|
services.mysql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dataDir = "/data/mysql";
|
|
||||||
package = pkgs.mariadb;
|
package = pkgs.mariadb;
|
||||||
ensureDatabases = [ "photoprism" ];
|
ensureDatabases = [ "photoprism" ];
|
||||||
ensureUsers = [{
|
ensureUsers = [{
|
||||||
|
@ -119,15 +121,10 @@
|
||||||
"photos.malka.family" = {
|
"photos.malka.family" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
http2 = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:2342";
|
proxyPass = "http://0.0.0.0:2342";
|
||||||
proxyWebsockets = true;
|
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