R
Railwayβ€’10mo ago
root

Nextcloud reverse proxy configuration

(from https://discord.com/channels/713503345364697088/727689277219012669/1204859454462369833) (cc @Vin @Brody) 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.
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Solution:
Huzzah, I got it working! I filled in the TRUSTED_PROXIES, OVERWRITEHOST, and OVERWRITEPROTOCOL variables from the image
nextcloud - Official Image | Docker Hub
Nextcloud manual docker image
Jump to solution
19 Replies
MantisInABox
MantisInABoxβ€’10mo ago
Are you using a custom domain? Or the Railway domain?
Brody
Brodyβ€’10mo ago
do you think aleks will miss the 10 min window
MantisInABox
MantisInABoxβ€’10mo ago
Probably! 🀣
Brody
Brodyβ€’10mo ago
lets see
MantisInABox
MantisInABoxβ€’10mo ago
And he missed the 10 minute window! 🀣
root
rootOPβ€’10mo ago
Custom domain
MantisInABox
MantisInABoxβ€’10mo ago
I'm not seeing that error when I setup a new deploy
root
rootOPβ€’10mo ago
843f00ff-8688-41cc-adef-d4920bd94b43
Brody
Brodyβ€’10mo ago
aleks how did you miss the 10 minute window, did you forget about it
root
rootOPβ€’10mo ago
I just deployed it a couple of days ago I got up to walk the dog
Brody
Brodyβ€’10mo ago
aka yes
root
rootOPβ€’10mo ago
yeah, I did oh wait NEXTCLOUD_TRUSTED_DOMAINS sorry ohhhh I need to redeploy it for it to get that var in after setting up a custom domain
Brody
Brodyβ€’10mo ago
dont worry, vin has let that slip his mind too
root
rootOPβ€’10mo ago
nope, still not working
Solution
root
rootβ€’10mo ago
Huzzah, I got it working! I filled in the TRUSTED_PROXIES, OVERWRITEHOST, and OVERWRITEPROTOCOL variables from the image
nextcloud - Official Image | Docker Hub
Nextcloud manual docker image
Kilian S.
Kilian S.β€’4mo 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... πŸ˜„
No description
Brody
Brodyβ€’4mo ago
this should be what you want, untested though -
TRUSTED_PROXIES=100.0.0.0/8
OVERWRITEHOST=${{RAILWAY_PUBLIC_DOMAIN}}
OVERWRITEPROTOCOL=https
TRUSTED_PROXIES=100.0.0.0/8
OVERWRITEHOST=${{RAILWAY_PUBLIC_DOMAIN}}
OVERWRITEPROTOCOL=https
Kilian S.
Kilian S.β€’4mo ago
yes that works. thanks!
Brody
Brodyβ€’4mo ago
no problem
Want results from more Discord servers?
Add your server