modified
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,12 +3,10 @@ volumes/html/*
|
|||||||
|
|
||||||
# But not these directories
|
# But not these directories
|
||||||
!volumes/html/dl.zinomedia.de
|
!volumes/html/dl.zinomedia.de
|
||||||
!volumes/html/joplin.zinomedia.de
|
|
||||||
!volumes/logs/
|
!volumes/logs/
|
||||||
|
|
||||||
# Ignore contents of these directories
|
# Ignore contents of these directories
|
||||||
volumes/html/dl.zinomedia.de/*
|
volumes/html/dl.zinomedia.de/*
|
||||||
volumes/html/joplin.zinomedia.de/*
|
|
||||||
volumes/logs/*
|
volumes/logs/*
|
||||||
|
|
||||||
# Do not ignore a special file name
|
# Do not ignore a special file name
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ server {
|
|||||||
listen [::]:443 ssl;
|
listen [::]:443 ssl;
|
||||||
server_name joplin.zinomedia.de;
|
server_name joplin.zinomedia.de;
|
||||||
|
|
||||||
root /usr/share/nginx/html/joplin.zinomedia.de;
|
|
||||||
|
|
||||||
access_log off;
|
access_log off;
|
||||||
error_log /var/log/nginx/error.log error;
|
error_log /var/log/nginx/error.log error;
|
||||||
|
|
||||||
@@ -18,18 +16,23 @@ server {
|
|||||||
|
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||||
|
|
||||||
|
# Gzip Compression
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
# WebDAV Configuration
|
location / {
|
||||||
auth_basic "realm_name";
|
resolver 127.0.0.11;
|
||||||
auth_basic_user_file /usr/share/nginx/html/joplin.zinomedia.de/.credentials.list;
|
set $upstream "joplin:22300";
|
||||||
dav_methods PUT DELETE MKCOL COPY MOVE;
|
|
||||||
dav_ext_methods PROPFIND OPTIONS;
|
proxy_pass http://$upstream;
|
||||||
dav_access user:rw group:rw all:r;
|
proxy_http_version 1.1;
|
||||||
client_max_body_size 0;
|
proxy_set_header Host $host;
|
||||||
create_full_put_path on;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
autoindex on;
|
proxy_set_header Accept-Encoding gzip;
|
||||||
|
proxy_headers_hash_max_size 512;
|
||||||
|
proxy_headers_hash_bucket_size 128;
|
||||||
|
proxy_read_timeout 3600;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
Reference in New Issue
Block a user