2 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.
24 Replies
2 years ago
Are you using a custom domain? Or the Railway domain?
2 years ago
do you think aleks will miss the 10 min window
2 years ago
Probably! 🤣
2 years ago
lets see
2 years ago
And he missed the 10 minute window! 🤣
2 years ago
Custom domain
2 years ago
I'm not seeing that error when I setup a new deploy
2 years ago
843f00ff-8688-41cc-adef-d4920bd94b43
2 years ago
aleks how did you miss the 10 minute window, did you forget about it
2 years ago
I just deployed it a couple of days ago
2 years ago
I got up to walk the dog
2 years ago
aka yes
2 years ago
yeah, I did
2 years ago
oh wait
2 years ago
NEXTCLOUDTRUSTEDDOMAINS
2 years ago
sorry
2 years ago
ohhhh I need to redeploy it for it to get that var in after setting up a custom domain
2 years ago
dont worry, vin has let that slip his mind too
2 years ago
nope, still not working
2 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… 😄

2 years ago
this should be what you want, untested though -
TRUSTED_PROXIES=100.0.0.0/8
OVERWRITEHOST=${{RAILWAY_PUBLIC_DOMAIN}}
OVERWRITEPROTOCOL=https2 years ago
yes that works. thanks!
2 years ago
no problem