Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot increase the maximum size of an upload #1529

Closed
wsw70 opened this issue Oct 28, 2024 · 4 comments
Closed

Cannot increase the maximum size of an upload #1529

wsw70 opened this issue Oct 28, 2024 · 4 comments

Comments

@wsw70
Copy link

wsw70 commented Oct 28, 2024

According to the documentation, max-size sets the maximum size for an upload (1.5 GB by default). I tried to change it in my docker deployment by using the relevant env variable (sharry is behind a reverse proxy, namely Traefik):

services:
  sharry:
    command: /opt/conf/sharry.conf
    image: eikek0/sharry:latest
    restart: unless-stopped
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - conf:/opt/conf
      - data:/data
    environment:
      - SHARRY_MAX_SIZE="10G"
      - SHARRY_CHUNK_SIZE="50M"
volumes:
  conf: null
  data: null

SHARRY_MAX_SIZE does not change the default, 1.5G is displayed in the upload section and it is indeed the maximum

@eikek
Copy link
Owner

eikek commented Oct 29, 2024

Hi @wsw70, can you try SHARRY_BACKEND_SHARE_MAX_SIZE?

@eikek eikek added the question label Oct 29, 2024
@wsw70
Copy link
Author

wsw70 commented Oct 30, 2024

Hi @wsw70, can you try SHARRY_BACKEND_SHARE_MAX_SIZE?

I tried:

environment:
      - SHARRY_BACKEND_SHARE_MAX_SIZE=10G
      - SHARRY_CHUNK_SIZE=100M

After restarting the stack I still get Uploads are possible up to 1.5G. in the sharing screen.

@eikek
Copy link
Owner

eikek commented Oct 31, 2024

That is strange. I just tried it here and it works. This is the compose file I used:

version: '3.7'
services:
  restserver:
    image: eikek0/sharry:latest
    container_name: sharry
    command: /opt/sharry.conf
    ports:
      - "9090:9090"
    volumes:
      - ${PWD}/sharry.conf:/opt/sharry.conf
    environment:
      - SHARRY_BACKEND_SHARE_MAX_SIZE=23G
      - SHARRY_BACKEND_AUTH_FIXED_ENABLE=true
    depends_on:
      db:
        condition: service_healthy
  db:
    image: postgres:17.0
    container_name: postgres_db
    volumes:
      - postgres_data:/var/lib/postgresql/data/
    environment:
      - POSTGRES_USER=dbuser
      - POSTGRES_PASSWORD=dbpass
      - POSTGRES_DB=dbname
      - PGUSER=dbuser
    healthcheck:
      test: ["CMD-SHELL", "pg_isready", "-d", "dbname"]
      interval: 15s
      timeout: 60s
      retries: 5
      start_period: 15s
volumes:
  postgres_data:

Copy link
Contributor

github-actions bot commented Dec 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. This only applies to 'question' issues. Always feel free to reopen or create new issues. Thank you!

@github-actions github-actions bot added the stale label Dec 1, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants