Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Seafile

Featured Replies

Was anyone able to successfully set up seafile with a reverse proxy (swag or NPM etc.)?
I'm currently trying to set it up but I either break the login "CSRF verification failed" or I can't upload/downlload stuff remotely.


I'm just curious if someone has a configuration that works

  • 3 months later...

Hello :)
I have got it to work under NPM just fine, but I cant get it to work under swag :(
No matter what I try with the config file I just get the 500 error at best.

For NMP I just had to make sure the right domain was set in the Seafile settings, else it worked.
For NMP the config file looked like this:


 

# ------------------------------------------------------------
# seafile.domain.com
# ------------------------------------------------------------


server {
  set $forward_scheme http;
  set $server         "unraid server ip";
  set $port           8082;

  listen 8080;
listen [::]:8080;

listen 4443 ssl http2;
listen [::]:4443 ssl http2;


  server_name seafile.domain.com;


  # Let's Encrypt SSL
  include conf.d/include/letsencrypt-acme-challenge.conf;
  include conf.d/include/ssl-ciphers.conf;
  ssl_certificate /etc/letsencrypt/live/npm-20/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/npm-20/privkey.pem;






  # Block Exploits
  include conf.d/include/block-exploits.conf;







    # Force SSL
    include conf.d/include/force-ssl.conf;





  access_log /config/log/proxy-host-21_access.log proxy;
  error_log /config/log/proxy-host-21_error.log warn;

location /accounts { deny all;}





  location / {









    

    # Proxy!
    include conf.d/include/proxy.conf;
  }


  # Custom
  include /data/nginx/custom/server_proxy[.]conf;
}

 

  • Author

I moved to caddy which was super easy to set up.

No more headache from swag/NPM

After 6 days and over 30+ hours I was about ready to give up when I FINALLY was able to get Seafile (specifically uploads/downloads) working with SWAG. Huge shout out to user tubezleb for providing this solution on GitHub. I did using the official image and following some of the context in this guide.

 

I created a file called seafile.subdomain.conf and the only change I needed to make in this was to update the server name to match my domain. I also had to update the port from 8000 to my port number since 8000 is already in use on my server in the proxy config.

 

I also had to add several variables to the container that I attached in the screenshot.

 

Last thing, in the /seafile/conf directory created after you hit apply I needed to update the web ui port in the following files (this only matters if you don't use port 8000):

  • gunicorn.conf
  • seafdav.conf
  • seahub_settings.py

Total sidenote, email notifications started working after I got the file server working. Follow this guide here. Hope this helps someone. 

Screenshot 2024-08-12 at 10.19.29 PM.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.