modified
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,10 +3,12 @@ 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
|
||||||
|
|||||||
40
volumes/conf.d/joplin.zinomedia.de.conf
Normal file
40
volumes/conf.d/joplin.zinomedia.de.conf
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
server_name joplin.zinomedia.de;
|
||||||
|
|
||||||
|
root /usr/share/nginx/html/joplin.zinomedia.de;
|
||||||
|
|
||||||
|
access_log off;
|
||||||
|
error_log /var/log/nginx/error.log error;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/joplin.zinomedia.de/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/joplin.zinomedia.de/privkey.pem;
|
||||||
|
|
||||||
|
# SSL Optimizations
|
||||||
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
ssl_session_cache shared:SSL:10m;
|
||||||
|
ssl_session_timeout 10m;
|
||||||
|
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
|
# WebDAV Configuration
|
||||||
|
auth_basic "realm_name";
|
||||||
|
auth_basic_user_file /usr/share/nginx/html/joplin.zinomedia.de/.credentials.list;
|
||||||
|
dav_methods PUT DELETE MKCOL COPY MOVE;
|
||||||
|
dav_ext_methods PROPFIND OPTIONS;
|
||||||
|
dav_access user:rw group:rw all:r;
|
||||||
|
client_max_body_size 0;
|
||||||
|
create_full_put_path on;
|
||||||
|
autoindex on;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name joplin.zinomedia.de;
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
0
volumes/html/joplin.zinomedia.de/.gitkeep
Normal file
0
volumes/html/joplin.zinomedia.de/.gitkeep
Normal file
Reference in New Issue
Block a user