Nextcloud reverse proxy configuration

3 years ago

(from https://discord.com/channels/713503345364697088/727689277219012669/1204859454462369833)

(cc <@650898413340327973> <@539512869780455445>)

Nextcloud needs to be told that it's behind a reverse proxy, and what reverse proxy it's behind. I'm not sure how to do this without terminal access.

Closed

24 Replies

3 years ago

Are you using a custom domain? Or the Railway domain?


3 years ago

do you think aleks will miss the 10 min window


3 years ago

Probably! 🤣


3 years ago

lets see


3 years ago

And he missed the 10 minute window! 🤣


3 years ago

Custom domain


3 years ago

I'm not seeing that error when I setup a new deploy


3 years ago

843f00ff-8688-41cc-adef-d4920bd94b43


3 years ago

aleks how did you miss the 10 minute window, did you forget about it


3 years ago

I just deployed it a couple of days ago


3 years ago

I got up to walk the dog


3 years ago

aka yes


3 years ago

yeah, I did


3 years ago

oh wait


3 years ago

NEXTCLOUD_TRUSTED_DOMAINS


3 years ago

sorry


3 years ago

ohhhh I need to redeploy it for it to get that var in after setting up a custom domain


3 years ago

dont worry, vin has let that slip his mind too


3 years ago

nope, still not working


3 years ago

Huzzah, I got it working! I filled in the TRUSTED_PROXIES, OVERWRITEHOST, and OVERWRITEPROTOCOL variables from the image


2 years ago

Hello everyone, nice to see you guys are mocking eachother.

Im exploring Nextcloud and I ran into a similiar issue. Ive deployed it, it works from the railway domain. When Ive added the the custom domain in railway I receive this message when I try to access it from the custom domain.

I guess I have to follow aleks's steps to get it running, right? What are the values for TRUSTED_PROXIES, OVERWRITEHOST, and OVERWRITEPROTOCOL? Thank you for patience with my noobish question, please help me what is propably obvious... 😄

1275779616748994652


2 years ago

this should be what you want, untested though -

TRUSTED_PROXIES=100.0.0.0/8
OVERWRITEHOST=${{RAILWAY_PUBLIC_DOMAIN}}
OVERWRITEPROTOCOL=https

2 years ago

yes that works. thanks!


2 years ago

no problem


Welcome!

Sign in to your Railway account to join the conversation.

Loading...