It is currently Sat Apr 17, 2021 1:51 am
All times are UTC + 8 hours

Has anyone gotten the new Reverse Proxy to work?

Re: Has anyone gotten the new Reverse Proxy to work?

Postby Nazar78 » Sun Dec 27, 2020 4:02 am

Bennas wrote:Hi,
Has anyone had success with nextcloud on docker ?

When at home, I can use https://mydomain.myasustor.com:32681 to connect to my nextcloud instance at http://192.168.1.200:32680
Reverse proxy seems to be working.

When on another network, the same request times out. I suspect it has something to do with nextcloud config / https but I can't find any solution anywhere. Could anyone help ?
Thanks !

Is the port 32681 open in your router? Else it will usually result in connection refused. Can you connect to ADM while using external network? Timeout usually means your ddns is not working properly. Try ping the ddns see if it resolves to your public IP even though if the ping timed out it's just to ensure your ddns points correctly to your public IP.

For nextcloud, point the reverse proxy to the http port of the app. You can however use https on the reverse proxy. I'm not sure of your config but take a look at the docs here https://docs.nextcloud.com/server/lates ... ation.html
AS5304T - 16GB DDR4 - [40TB N300 RAID10 + 5 Bay USB: 8TB RAID5 & 480GB SSD for Apps]
User avatar
Nazar78
 
Posts: 287
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore

Re: Has anyone gotten the new Reverse Proxy to work?

Postby Bennas » Mon Dec 28, 2020 12:25 am

Nazar78 wrote:Is the port 32681 open in your router?

Yes, it does show in the UPnP port list (for TCP)

Nazar78 wrote:Can you connect to ADM while using external network? Timeout usually means your ddns is not working properly. Try ping the ddns see if it resolves to your public IP even though if the ping timed out it's just to ensure your ddns points correctly to your public IP.

If I use mydyndns.myasustor.com it does show ADM login page.

Nazar78 wrote:For nextcloud, point the reverse proxy to the http port of the app. You can however use https on the reverse proxy. I'm not sure of your config but take a look at the docs here https://docs.nextcloud.com/server/lates ... ation.html


I think I'm Ok for the reverse proxy settings. You can find a screenshot of the settings in the attachment.

Thanks again for your help !
Attachments
Capture.JPG
Capture.JPG (33.09 KiB) Viewed 522 times
Bennas
 
Posts: 6
Joined: Sun Nov 10, 2019 5:34 pm

Re: Has anyone gotten the new Reverse Proxy to work?

Postby ilike2burnthing » Tue Feb 02, 2021 7:05 pm

Original issue fixed in 3.5.4.RE11!

Socket upgrade thingy for Portainer still has to be done manually though. Will send them a message, see if it's on the cards.
ilike2burnthing
 
Posts: 158
Joined: Thu Apr 09, 2020 8:01 pm

Re: Has anyone gotten the new Reverse Proxy to work?

Postby The PyroPath » Mon Feb 22, 2021 8:06 am

Would this function also work for a Transmission webui reverse proxy? I'm running Haugene-transmission-openvpn through portainer, but unable to connect to the webui over WAN. It says with very few words to set up a reverse proxy, but my knowledge about portainer is so small, I don't know where to start with that... And if it would work, could I get a little help on how to set it up? Because I've had a look and most fields are....well confusing without examples or helpfile...
The PyroPath
 
Posts: 16
Joined: Mon Feb 01, 2021 4:55 am

Re: Has anyone gotten the new Reverse Proxy to work?

Postby ilike2burnthing » Mon Feb 22, 2021 8:32 am

Currently using ADM reverse proxy with the same Transmission image. Nothing special to set up in Portainer, just both ADM reverse proxy paths set to:
Code: Select all
/transmission/


The URL used to access it should end in /
https://AsustorID.myasustor.com/transmission/web/
ilike2burnthing
 
Posts: 158
Joined: Thu Apr 09, 2020 8:01 pm

Re: Has anyone gotten the new Reverse Proxy to work?

Postby The PyroPath » Wed Feb 24, 2021 12:44 am

ilike2burnthing wrote:Currently using ADM reverse proxy with the same Transmission image. Nothing special to set up in Portainer, just both ADM reverse proxy paths set to:
Code: Select all
/transmission/


The URL used to access it should end in /
https://AsustorID.myasustor.com/transmission/web/


This completely boggles my mind. Didn't work at first, so I threw out all ports from the router, ez router etc. Started with resetting NAS and router. Set up https and different ports to use 19091 on proxy and linked to 9092 over http on the local Lan IP. Then it worked. Had to restart the NAS for something else and after that I can't access it from outside anymore. Tried retaking all previous steps, but it just doesn't go back to working.
The PyroPath
 
Posts: 16
Joined: Mon Feb 01, 2021 4:55 am

Re: Has anyone gotten the new Reverse Proxy to work?

Postby The PyroPath » Wed Feb 24, 2021 8:39 am

OK, this is driving me nuts... This is what I did:
Code: Select all
[b]Proxy domain[/b]
Title: trans
Protocol: HTTPS
Domain: [asustor ID].myasustor.com
Port#: 19091
Network interface: LAN 1 / [LOCAL NAS IP]
Path: /transmission/web/
Also enable EZ-Connect port forwarding: Checked

[b]Rule[/b]
Name: trans RP
Protocol: HTTP
Hostname: [LOCAL NAS IP]
Port#: 9091
Path: /transmission/web/
URL redirection: [Remains blank]


Click Test connection... and http://[NAS LOCAL IP]:9091/transmission/web/ opens and everything works. So I click Next.

Now when I open https://[asustor ID].myasustor.com:19091/transmission/web/ the web interface loads but all elements say (Loading...) in Transmission Web Control. All buttons are there, but the torrents aren't there and neither is the data... it's almost like it loads a 2nd instance of the page, but can't connect to the server. When I switch to the classic lay out of the original page lay out it says:
Code: Select all
[b]Connection Failed[/b]

Could not connect to the server. You may need to reload the page to reconnect.
[Dismiss button]  [Details button]


When I push the details button it shows:
Code: Select all
404 Not Found

404 Not Found
nginx


Really scratching my head...
The PyroPath
 
Posts: 16
Joined: Mon Feb 01, 2021 4:55 am

Re: Has anyone gotten the new Reverse Proxy to work?

Postby ilike2burnthing » Wed Feb 24, 2021 9:27 am

Try just /transmission/ instead of /transmission/web/.

Add both ports to port forwarding on your router.
ilike2burnthing
 
Posts: 158
Joined: Thu Apr 09, 2020 8:01 pm

Re: Has anyone gotten the new Reverse Proxy to work?

Postby The PyroPath » Wed Feb 24, 2021 10:51 pm

ilike2burnthing wrote:Try just /transmission/ instead of /transmission/web/.

Add both ports to port forwarding on your router.


Uhm, it's now working again, but I don't know why...I just don't understand why it now works though. Because I just tried every and all permutations of the Path (both proxy domain and proxy rule) I could think off, and none worked, but all had a separate type of response and failed and I wanted to do it again and document the responses, but at the first try it worked...

Prerequisite: Locally the web UI is reached by opening the browser and going to https://192.168.0.x:9091/tranmission/web/ and Port forwarding set both manually and trough EZ-router. Don't know if it matters, but since it's working now, I'm reluctant to try ;-)

What works right at this moment for the reverse proxy is is the following:
Code: Select all
Prerequisite: Locally the web UI is reached by opening the browser and going to https://192.168.0.x:9091/tranmission/web/
Port forwarding set both manually and trough EZ-router. Don't know if it matters, but since it's working now, I'm reluctant to try ;-)

For Proxy domain:
Title: trans
Protocol: HTTPS
Domain: [asustor ID].myasustor.com
Port#: 19091
Network interface: LAN 1 / [LOCAL NAS IP]
Path: /  (yes, just a plain old slash...)
Also enable EZ-Connect port forwarding: Checked

For Proxy Rule:
Name: trans RP
Protocol: HTTP
Hostname: [LOCAL NAS IP]
Port#: 9091
Path: / ( Yes, again a plain old slash)
URL redirection: [Remains blank]


When I now open the browser and go to https://[Asustor ID].myasustor.com:19091/transmission/web/ the page opens fine and with all elements...
The PyroPath
 
Posts: 16
Joined: Mon Feb 01, 2021 4:55 am

Re: Has anyone gotten the new Reverse Proxy to work?

Postby ilike2burnthing » Thu Feb 25, 2021 1:19 am

Huh, strange. Well hey, whatever works :P
ilike2burnthing
 
Posts: 158
Joined: Thu Apr 09, 2020 8:01 pm

Previous

Return to ADM general

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest