How to add Railway custom domain into trusted_domains of NextCloud?
Using custom domain to access NextCloud today, I saw this message. In order to fix it, I have to edit the file inside the container, which Railway does not support right now. I think the only way left is edit the template/source code that inject custom domain as environment variable into that file.
Any better idea?
100 Replies
Project ID:
375a1b92-5074-4e27-9bc2-6a3e7a3361cb
375a1b92-5074-4e27-9bc2-6a3e7a3361cb
@Sang Dang was this deployed from the template I made?
I used a template. I don't know from who. I think it's official template, right?
Nah, it's not an official template. I made it.
I'm looking into this right now for you
thanks
when I installed in VPS, I can ssh and edit the config file directly, (I know it's not the best practice 😄 But it's NextCloud issue 😛 )
Yeah, that's true, it is a nextcloud issue for sure...
https://nextcloud.vincenzofehring.com/
works when installed from the custom domain right?
I just deployed the template https://railway.app/template/LddOJ1
Added my custom domain to cloudflare and the service, and I don't see that message
Solution
sang installed from the railway url first though?
Ah... that might be why then...
🤔
ah damn it
when we run the install script, it ttake the current domain
Yeah, if I go back to it from the railway URL, i get the access through untrusted domain
ok I got it
i think there is a command you can run to update the trusted domains?
let me add the custom domain first, then run the script
my cloud has 0 stuffs so I can destroy it now
Unfortunately, there is no way of updating the trusted domains from the dashboard, which is dumb as hell
Yeah, I was just reading about that https://help.nextcloud.com/t/howto-add-a-new-trusted-domain/26/11
so maybe something like this for a start command
I still think it's dumb thatyou cant manage that from the admin dashboard
full agree with you there
I deleted and setup the new one, assigned custom domain and installed with it, go smoothly inside.
Thanks @Vin and @Brody
No problem. I'll have to see if theres a way that we can fix that with an env
might be worth to try vin?
Well damn
Updating the template now
I agree, that would be great if we can fix it, because usually adding sub domain take time (up to hours) and people usually can not wait for it, e.g. most likely will go and install with railway domain
how deep was that hidden
About 3/4 down the docker hub page
might as well add an external database while youre at it
Why? There is nothing wrong with using the SQLite database that it comes with
for fun
Template updated to include that env variable
I think it's good to have different database option, people who consider nextcloud usually also want private db
I'm gonna go through and add the S3 configurations as well, since the volume on railway is limited
no default value ðŸ˜
No, because it's OPTIONAL!
I think we can't put default value
we dont know what is customer's custom domain
If I put a value there, it will use that value
dont make me send you a link to railways docs
🤣
Who linked to railways docs?
default to railway_public_domain?
There. Happy?
I added the railway public domain by default
yes 🙂
needs health check too 🙂
Sang. Would you like me to setup S3 variables by default?
Not by default, but provide them?
it would be great, we have 100GB of photos
Oh wow!
I'm just not sure what will happen if I include them and they aren't filled in...
so I think setup with S3 is great
I could mark them as optional I guess
they wont be added to the service
are you single?
woah
any married husband will have to find a way to store wife's selfie
Happily married 11 years!
no 100GB selfie photos? weird
Half petabyte storage server at the house 😄
and the images are still all webp
just kiddin
actually there were a bunch of silly videos that my kids filming each other, and they are so cute that I dont want to delete any of those
awh
modern day with modern problems, eh 😄
Done... all the S3 variables have been added to the service for configuration on deploy
I'll add them to the template page in a bit
wow you went to town
All the S3 variables my guy
I love this spirit
never seen half of these before
thanks so muchhhh
No problem. Glad I could make it just that much better of a template
if this work well, I will stop using the vps and do everything in railway 😄
Also, their MySQL config expects your database to be listening on 3306 and Postgres on 5432
So, I might just keep it with SQLite for now
nothing wrong with that
when I installed on my vps, using Postgres has problem, I cant move forward, switch to sqllite is ok
Im not sure what is problem, it constantly said can not connect to postgres etc
vin forgot about the internal network just now
I totally did
it happens to the best of us
lol I installed umami and wait for custom domain then went to set it up, the NextCloud trauma is
did you deploy railways umami?
yes, it works well
ill be updating it soon
dont get too deep into your current deploy
thanks for reminding, I just set it up for testing, the company might decide to switch maybe next year
theres also metabase
There's also Axiom! 🤣
to ask question out of context of this topic, but for example I spawn lot of services inside my current team with pro plan, does it make the bills hype up like from $20/m to $100 or $200/m?
The team plan is the $20/month per user, plus usage
Wanna send a screenshot of your expanded usage screen?
yeah per user, not per project 🙂
1 sec
On your usage page, just hit "show breakdown" over your estimated bill... Don't need anything more than that top section
This top section, sorry
oh I see
Sorry, I didn't explain myself soon enough 🤣
rich boy
That's because of my FastAPI template 😄
oh yes and "my" umami template
Exactly
thanks so much, for helping out
let's get back to chat chit channel 😄