diff options
| Commit | e8601d2c8f9c671d7ac04b23ca9910bfd7060750 (patch) | |
|---|---|---|
| Author | 2025-07-02 20:32:17 +0300 | |
| Committer | 2025-07-02 20:32:17 +0300 | |
| Files | 276790e8a36af7d53208136e4086f6ea611e3ba3 | |
| nix-e8601d2c8f9c671d7ac04b23ca9910bfd7060750.tar nix-e8601d2c8f9c671d7ac04b23ca9910bfd7060750.tar.gz nix-e8601d2c8f9c671d7ac04b23ca9910bfd7060750.zip | ||
| Parent | 1a2a3b05a5cd9b42d9c481d63c6867cde79358b7 (diff) | |
feat(machines/marduk): Completed web access to file servers
1 files changed, 19 insertions, 2 deletions
| -rw-r--r-- | machines/marduk/configuration.nix | 21 |
diff --git a/machines/marduk/configuration.nix b/machines/marduk/configuration.nix index 0b95063..1c22c82 100644 --- a/machines/marduk/configuration.nix +++ b/machines/marduk/configuration.nix @@ -1,6 +1,6 @@ { pkgs, ... }: { services.dnsmasq.settings.address = [ - "/server.int/ftp.int/192.168.0.10" + "/server.int/ftp.int/samba.int/192.168.0.10" ]; services.httpd = { @@ -12,9 +12,26 @@ SetHandler server-status ''; }; - "ftp.int" = { + + #== File servers ==# + + "samba.int" = rec { + listen = [ { port = 80; } ]; + documentRoot = "/NetworkDirectory"; + extraConfig = '' + <Directory "${documentRoot}"> + IndexOptions +NameWidth=* +Charset=UTF-8 + </Directory> + ''; + }; + "ftp.int" = rec { listen = [ { port = 80; } ]; documentRoot = "/home/ftp"; + extraConfig = '' + <Directory "${documentRoot}"> + IndexOptions +NameWidth=* +Charset=UTF-8 + </Directory> + ''; }; }; }; |
