README.md doesn't render the example blocks properly.

This commit is contained in:
2024-04-12 02:07:43 +03:00
parent 49ad604a38
commit 0dd2be167f

View File

@@ -36,23 +36,26 @@ The community [nginx_dav_ext_module](https://github.com/MkfsSion/nginx-dav-ext-m
There are a few reasonable ways of setting it up. There are a few reasonable ways of setting it up.
1. Standalone mode with authentication 1. Standalone mode with authentication
location / { ```
auth_basic "My closed site, go away!"; location / {
auth_basic_user_file /usr/share/nginx/htpasswd; auth_basic "My closed site, go away!";
auth_basic_user_file /usr/share/nginx/htpasswd;
client_body_temp_path /var/nginx/webdav_client_temp; client_body_temp_path /var/nginx/webdav_client_temp;
webdav_methods PUT DELETE MKCOL COPY MOVE PROPFIND OPTIONS LOCK UNLOCK; webdav_methods PUT DELETE MKCOL COPY MOVE PROPFIND OPTIONS LOCK UNLOCK;
create_full_put_path on; create_full_put_path on;
webdav_access all:rw; webdav_access all:rw;
webdav_lock zone=foo; webdav_lock zone=foo;
root /var/nginx/webdav; root /var/nginx/webdav;
index index.html index.htm; index index.html index.htm;
} }
```
2. Managed mode with subrequest full cloud functionality with [starfields-cloud](https://git.vickys-corner.xyz/StarFields/starfields-cloud) 2. Managed mode with subrequest full cloud functionality with [starfields-cloud](https://git.vickys-corner.xyz/StarFields/starfields-cloud)
location / { ```
location / {
auth_request /cloud/auth/; auth_request /cloud/auth/;
client_body_temp_path /var/nginx/webdav_client_temp; client_body_temp_path /var/nginx/webdav_client_temp;
@@ -61,11 +64,11 @@ location / {
dav_access all:rw; dav_access all:rw;
dav_ext_lock zone=foo; dav_ext_lock zone=foo;
root /var/nginx/webdav; root /var/nginx/webdav;
index index.html index.htm; index index.html index.htm;
} }
location = /cloud/auth/ { location = /cloud/auth/ {
internal; internal;
proxy_pass_request_headers on; proxy_pass_request_headers on;
@@ -80,7 +83,8 @@ location = /cloud/auth/ {
# uwsgi_param X-Original-Method $request_uri; # uwsgi_param X-Original-Method $request_uri;
# uwsgi_param X-Original-URI $request_uri; # uwsgi_param X-Original-URI $request_uri;
# uwsgi_pass unix:/path/to/my/django.sock; # uwsgi_pass unix:/path/to/my/django.sock;
} }
```
# Directives # Directives
| Directive | Specification | Context | Description | | Directive | Specification | Context | Description |