Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| services:filestash [2024/04/22 10:00] – willy | services:filestash [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== FileStash ====== | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | Unfortunately, | ||
| - | * Does not support sub-paths | ||
| - | * Require container, which means you cannot easily run multiple instances for multiple non-root users. | ||
| - | |||
| - | Here is what i did to try it out, but i gave up because for this specific usage i do **need** subpath support. | ||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | FileStash is provided only as a container, which makes it difficult to run as multiple instances for multiple users. | ||
| - | |||
| - | As usual you need a dedicated user for proper security: | ||
| - | <code bash> | ||
| - | useradd -d / | ||
| - | su - filestash | ||
| - | curl -O https:// | ||
| - | </ | ||
| - | |||
| - | Now properly edit the compose file: | ||
| - | <file - docker-compose.yml> | ||
| - | version: ' | ||
| - | services: | ||
| - | app: | ||
| - | container_name: | ||
| - | image: machines/ | ||
| - | restart: always | ||
| - | environment: | ||
| - | - APPLICATION_URL=https:// | ||
| - | ports: | ||
| - | - " | ||
| - | volumes: | ||
| - | - / | ||
| - | |||
| - | onlyoffice: | ||
| - | container_name: | ||
| - | image: onlyoffice/ | ||
| - | restart: always | ||
| - | security_opt: | ||
| - | - seccomp: | ||
| - | |||
| - | volumes: | ||
| - | filestash: {} | ||
| - | |||
| - | networks: | ||
| - | filestash: {} | ||
| - | </ | ||
| - | |||
| - | And then the usual: | ||
| - | <code bash> | ||
| - | su - filestash | ||
| - | podman compose pull | ||
| - | </ | ||
| - | |||
| - | ===== Reverse Proxy ===== | ||
| - | |||
| - | The following basic NGINX setup: | ||
| - | <file - filestash.conf> | ||
| - | location /path/ { | ||
| - | client_max_body_size 512M; | ||
| - | |||
| - | proxy_pass http:// | ||
| - | proxy_http_version 1.1; | ||
| - | |||
| - | proxy_set_header Connection $http_connection; | ||
| - | proxy_set_header Connection ' | ||
| - | proxy_cache_bypass $http_upgrade; | ||
| - | proxy_set_header Host $host; | ||
| - | proxy_set_header X-Real-IP $remote_addr; | ||
| - | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| - | proxy_set_header X-Forwarded-Proto $scheme; | ||
| - | # | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ===== Autostart ===== | ||
| - | |||