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

Running on subpath with nginx #181

Closed
azertylr opened this issue Jan 23, 2024 · 1 comment · Fixed by #183
Closed

Running on subpath with nginx #181

azertylr opened this issue Jan 23, 2024 · 1 comment · Fixed by #183

Comments

@azertylr
Copy link

azertylr commented Jan 23, 2024

Hello I've tried to run as a subpath using nginx but I doesn't work, it redirect without the supath :(

This is my docker-compose:

  lychee:
    image: lycheeorg/lychee
    container_name: lychee
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Paris
      - DB_CONNECTION=sqlite
      - DB_DATABASE=/conf/db.sqlite
      - APP_NAME=Lychee 
      - APP_URL='https://domain.tld:443'
      - APP_DIR='/lychee'
      - TRUSTED_PROXIES=swag

and nginx config

location /lychee/ {
    include /config/nginx/proxy.conf;
    include /config/nginx/resolver.conf;
    set $upstream_app lychee;
    set $upstream_port 80;
    set $upstream_proto http;
    proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    rewrite /lychee(.*) $1 break;
}

thanks

@d7415
Copy link
Contributor

d7415 commented Jan 24, 2024

Sorry - APP_DIR was not being passed on. This should be fixed in the next :dev and release builds. In the meantime, you could add it manually to /conf/.env in the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants