Make storage writeable

This commit is contained in:
Ehmry - 2020-01-26 22:02:30 +01:00
parent b2f5af9abe
commit 9d4376600a
1 changed files with 7 additions and 9 deletions

View File

@ -2,9 +2,9 @@ name:
(import ../outer-defaults.nix name) // {
bindMounts."/srv/files" = {
hostPath = "/srv/ceph/c3d2/files";
isReadOnly = true;
bindMounts."/srv/c3d2" = {
hostPath = "/srv/ceph/c3d2";
isReadOnly = false;
};
config = { config, pkgs, lib, ... }: {
@ -36,12 +36,10 @@ name:
http2 = true;
# addSSL = true;
locations = {
"/" =
let
authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY";
in {
alias = "/srv/files/";
extraConfig = ''
"/" = let authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY";
in {
alias = "/srv/c3d2/files/";
extraConfig = ''
auth_basic "Chaos";
auth_basic_user_file ${authFile};
fancyindex on;