citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 93dd2b4a5cc96b7ce03ff5e3a52489df34d38029
parent 1963b19b4650b031d9367e836b080a00d5e0b4eb
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 28 Feb 2021 13:46:17 -0800

monad/nginx: joplin webdav

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mnix-config/machines/monad/default.nix | 29++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)

diff --git a/nix-config/machines/monad/default.nix b/nix-config/machines/monad/default.nix @@ -311,15 +311,30 @@ in ''; services.nginx.enable = if extra.is-minimal then false else true; + systemd.services.nginx.serviceConfig.ReadWritePaths = [ "/var/www" ]; services.nginx.httpConfig = '' server { - listen 80 default_server; - server_name _; - root /www/public; - index index.html index.htm; - location / { - try_files $uri $uri/ =404; - } + listen 80; + listen ${extra.machine.ztip}:80; + listen 192.168.86.26; + + server_name notes.jb55.com; + + location / { + root /var/www/notes; + autoindex on; + index index.html; + + client_body_temp_path /var/www/tmp; + + dav_methods PUT DELETE MKCOL COPY MOVE; + dav_ext_methods PROPFIND OPTIONS; + + client_max_body_size 10M; + + create_full_put_path on; + dav_access user:rw group:rw all:rw; + } } '' + (if config.services.nix-serve.enable then ''