12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- server {
- listen 8109;
- listen [::]:8109;
- set $app_root '/home/hi/p/cityapper-com-school/demos/notes-app/day-1';
- root $app_root;
- auth_basic_user_file $app_root/.htpasswd;
- auth_basic "Restricted";
- # Add index.php to the list if you are using PHP
- index index.html;
- #server_name hi-pi-64.local;
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ =404;
- }
- location /storage {
- autoindex on;
- alias $app_root/storage;
- # dav allowed method
- dav_methods PUT DELETE MKCOL COPY MOVE;
- # Allow current scope perform specified DAV method
- dav_ext_methods PROPFIND OPTIONS;
-
- # In this folder, newly created folder or file is to have specified permission. If none is given, default is user:rw. If all or group permission is specified, user could be skipped
- dav_access user:rw group:rw all:r;
- # Temporary folder
- client_body_temp_path /tmp;
-
- # MAX size of uploaded file, 0 mean unlimited
- client_max_body_size 0;
-
- # Allow autocreate folder here if necessary
- create_full_put_path on;
- }
- }
|