From db843fe7e01f7fe1f672c3d222b625a9ae94a5fa Mon Sep 17 00:00:00 2001 From: Axel Date: Wed, 19 Jul 2023 13:11:03 +0200 Subject: [PATCH] Improving Readme --- readme.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/readme.md b/readme.md index 58023a5..6c42b24 100644 --- a/readme.md +++ b/readme.md @@ -82,7 +82,16 @@ docker run -d \ -p 8080:80 \ -v :/app/storage/content \ --name filesharing \ +-e APP_NAME="FileSharing" \ +-e APP_URL="" \ +-e ASSET_URL="" \ -e UPLOAD_MAX_FILESIZE="1G" \ +-e APP_TIMEZONE="Europe/Paris" \ +-e UPLOAD_PREVENT_DUPLICATES=true \ +-e HASH_MAX_FILESIZE="1G" \ +-e UPLOAD_MAX_FILES=100 \ +-e UPLOAD_MAX_FILESIZE="1M" \ +-e LIMIT_DOWNLOAD_RATE="100K" \ axeloz/filesharing:latest ``` - use the `-v` option to bind your local storage to the docker instance (persisting data) @@ -90,6 +99,26 @@ axeloz/filesharing:latest - you may pass env variables with the `-e` option - you can use a reverse proxy for SSL termination (example: nginx) +Simple config for Nginx: + +``` +server { + server_name filesharing.box.webinno.fr; + charset utf-8; + + location / { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_pass http://localhost:8080; + } + + listen [::]:443 ssl http2; + listen 443 ssl http2; + ssl_certificate [...] + ssl_certificate_key [...] +} +``` + You can also use in docker compose with the following template: ```yaml