Make storage writeable
This commit is contained in:
parent
b2f5af9abe
commit
9d4376600a
|
@ -2,9 +2,9 @@ name:
|
||||||
|
|
||||||
(import ../outer-defaults.nix name) // {
|
(import ../outer-defaults.nix name) // {
|
||||||
|
|
||||||
bindMounts."/srv/files" = {
|
bindMounts."/srv/c3d2" = {
|
||||||
hostPath = "/srv/ceph/c3d2/files";
|
hostPath = "/srv/ceph/c3d2";
|
||||||
isReadOnly = true;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = { config, pkgs, lib, ... }: {
|
config = { config, pkgs, lib, ... }: {
|
||||||
|
@ -36,12 +36,10 @@ name:
|
||||||
http2 = true;
|
http2 = true;
|
||||||
# addSSL = true;
|
# addSSL = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/" =
|
"/" = let authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY";
|
||||||
let
|
in {
|
||||||
authFile = pkgs.writeText "htpasswd" "k-ot:sawCOTsl/fIUY";
|
alias = "/srv/c3d2/files/";
|
||||||
in {
|
extraConfig = ''
|
||||||
alias = "/srv/files/";
|
|
||||||
extraConfig = ''
|
|
||||||
auth_basic "Chaos";
|
auth_basic "Chaos";
|
||||||
auth_basic_user_file ${authFile};
|
auth_basic_user_file ${authFile};
|
||||||
fancyindex on;
|
fancyindex on;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user