lets-encrypt nginx seafile (frustrated!)


xhaloz

Recommended Posts

Hello,

 

I got nginx working with SSL just fine.  After I installed seafile everything works locally (http://192.168.1.x:8000.

 

In nginx default config I have

 

location /seafile {
include /config/nginx/proxy.conf;
proxy_pass http://192.168.1.x:8000/seafile;
}

 

Which this work fine, however none of my images or css load.  I noticed when I right click my public seafile page and view-source it says

<img src="/media/img/seafile-logo.png"

 

So naturally I would want to add /media into my nginx default.  However there is not a folder ANYWHERE on my unraid server that has the file seafile-logo.png to include the /appdata/seafile subfolders as well. I do not know how the internal server gets the CSS and images locally when I cannot find them at all in my terminal. I am wanting to pull my hair out.  Any help would be great!

 

 

Link to comment

Hello,

 

I got nginx working with SSL just fine.  After I installed seafile everything works locally (http://192.168.1.x:8000.'>http://192.168.1.x:8000.

 

In nginx default config I have

 

location /seafile {
include /config/nginx/proxy.conf;
proxy_pass http://192.168.1.x:8000/seafile;
}

What happens when you browse to http://192.168.1.x:8000/seafile

 

 

Great question!  Says "Could not be found"  I have modified my proxy_pass to say http://192.168.1.x:8000 without the /seafile .  I still have the same results though.  I need to figure out where seafile is getting its CSS and image srcs from. I know they are in the view source as mentioned earlier but I need to logically find them so I can tell nginx how to link them.

Link to comment

You haven't said how you've installed nginx, letsencrypt or seafile.  I don't really see how anybody can give you any advice to be honest.

 

Well they are dockers?  So what information are you exactly looking for?  The specific docker types?

 

letsencrypt

Seafile

 

Pretty simple if you ask me. And as mentioned before they are in the /appdata folders

Link to comment

 

Well they are dockers?  So what information are you exactly looking for?  The specific docker types?

 

letsencrypt

Seafile

 

I thought you were probably using the letsencrypt docker, but I wasn't sure if you'd installed Seafile manually into that as I have done with things in the past. 

 

Pretty simple if you ask me. And as mentioned before they are in the /appdata folders

 

Well it's also pretty simple to post in the relevant support threads for letsencrypt and seafile rather than just a random post in the general board, but I wasn't going to mention that, but as you bought up things that are pretty simple....  ::)

Link to comment

 

Well they are dockers?  So what information are you exactly looking for?  The specific docker types?

 

letsencrypt

Seafile

 

I thought you were probably using the letsencrypt docker, but I wasn't sure if you'd installed Seafile manually into that as I have done with things in the past. 

 

Pretty simple if you ask me. And as mentioned before they are in the /appdata folders

 

Well it's also pretty simple to post in the relevant support threads for letsencrypt and seafile rather than just a random post in the general board, but I wasn't going to mention that, but as you bought up things that are pretty simple....  ::)

 

I know you're being a smart ass but that isn't going to work in your favor  I am seeking help.  If you want to be condescending and negative that's your prerogative.  I already tried posting the question in the appropriate forum but it did not give me a "New Topic" button.  I am simply seeking advice on my issue if you cant provide me that no problem.  Anyone that COULD please help. Thank you very much. 

Link to comment

On a positive note, I really do like your PC specs.  I just got back from Afghanistan and I had surgery on my legs.  This 2 weeks in bed has been an awesome experience building unRAID. Especially high on percocet haha.  I am very excited to get this server to a level that I am satisfied with.  Just having some minor issues.

Link to comment

 

Well they are dockers?  So what information are you exactly looking for?  The specific docker types?

 

letsencrypt

Seafile

 

I thought you were probably using the letsencrypt docker, but I wasn't sure if you'd installed Seafile manually into that as I have done with things in the past. 

 

Pretty simple if you ask me. And as mentioned before they are in the /appdata folders

 

Well it's also pretty simple to post in the relevant support threads for letsencrypt and seafile rather than just a random post in the general board, but I wasn't going to mention that, but as you bought up things that are pretty simple....  ::)

 

I know you're being a smart ass but that isn't going to work in your favor  I am seeking help.  If you want to be condescending and negative that's your prerogative.  I already tried posting the question in the appropriate forum but it did not give me a "New Topic" button.  I am simply seeking advice on my issue if you cant provide me that no problem.  Anyone that COULD please help. Thank you very much.

 

I'm sorry, but I happen to be quite interested in reverse proxy setups and am one of the people involved in maintaining the letsencrypt container and supporting it, what I was trying to do was get more information from you so I could help.  If you actually take a look at my post history, you'll see I'm generally pretty helpful.  In fact one of the projects we're working on at the moment is cataloguing how to reverse proxy a wide range of containers as it's something that causes a lot of headaches.  Hell, just take a look at the Nextcloud thread for a start.

 

I rather thought you were being somewhat of a smart ass in your "simple" statement.  If you'd read the sticky in the appropriate forum the reason you can't post a new topic is so that people use the appropriate support threads which us authors go to the trouble of creating and checking.

 

As someone that works with reverse proxy setups a LOT, I stand by my original statement that you haven't given us enough information to go on.  Before you posted this I was actually taking a look at the seafile docker to see if I could help you figure this out and was about to ask for some more details about the run command for this, as one of the links in my sig would have showed you how to obtain.

 

But whatever, I can tell when my help isn't wanted, none of this "hasn't worked in my favour" as I have no problem as I don't use seafile, but I rather think it hasn't worked in your favour....

Link to comment

 

Well they are dockers?  So what information are you exactly looking for?  The specific docker types?

 

letsencrypt

Seafile

 

I thought you were probably using the letsencrypt docker, but I wasn't sure if you'd installed Seafile manually into that as I have done with things in the past. 

 

Pretty simple if you ask me. And as mentioned before they are in the /appdata folders

 

Well it's also pretty simple to post in the relevant support threads for letsencrypt and seafile rather than just a random post in the general board, but I wasn't going to mention that, but as you bought up things that are pretty simple....  ::)

 

I know you're being a smart ass but that isn't going to work in your favor  I am seeking help.  If you want to be condescending and negative that's your prerogative.  I already tried posting the question in the appropriate forum but it did not give me a "New Topic" button.  I am simply seeking advice on my issue if you cant provide me that no problem.  Anyone that COULD please help. Thank you very much.

 

I'm sorry, but I happen to be quite interested in reverse proxy setups and am one of the people involved in maintaining the letsencrypt container and supporting it, what I was trying to do was get more information from you so I could help.  If you actually take a look at my post history, you'll see I'm generally pretty helpful.  In fact one of the projects we're working on at the moment is cataloguing how to reverse proxy a wide range of containers as it's something that causes a lot of headaches.  Hell, just take a look at the Nextcloud thread for a start.

 

I rather thought you were being somewhat of a smart ass in your "simple" statement.  If you'd read the sticky in the appropriate forum the reason you can't post a new topic is so that people use the appropriate support threads which us authors go to the trouble of creating and checking.

 

As someone that works with reverse proxy setups a LOT, I stand by my original statement that you haven't given us enough information to go on.  Before you posted this I was actually taking a look at the seafile docker to see if I could help you figure this out and was about to ask for some more details about the run command for this, as one of the links in my sig would have showed you how to obtain.

 

But whatever, I can tell when my help isn't wanted, none of this "hasn't worked in my favour" as I have no problem as I don't use seafile, but I rather think it hasn't worked in your favour....

 

I already read the sticky and I moved my post over the appropriate forum.  I know your average user here might not be very savvy with computers but I've been doing this 17 years.  I get it. Hell I am doing this really high on percocet right now.  If you thought I was being a smart ass excuse me because that was not my intention. I also know you're very insightful here in the forums. So are we going to banter back and forth or can we move forward amicably?  I'm almost sure you can help me.  What information can I provide you?

Link to comment

The default site config in letsencrypt tells you the basics of two reverse proxy setups. 

If your proxied site uses a base url (url prefix) then you can use the base url proxy. If not, (which seems to be the case for you) you're better off using the subdomain method. Make sure you add the subdomain in letsencrypt container settings so your cert covers that subdomain. Then you can set up a second server block (as shown in the site config) for that subdomain

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.