How to change the HTTPS port and other ?

Hello ! I want to know how can i change the HTTPS port, because actually i only see the "PORT" variable. I want to know how can i manage LetsEncrypt and how can i change the docker container port and the TCP protocol. Thanks a lot
13 Replies
Percy
Percy11mo ago
Project ID: 0f5eadec-41b9-4d22-b1cf-efcaa05259b6
Patrick〽
Patrick〽11mo ago
0f5eadec-41b9-4d22-b1cf-efcaa05259b6
Fragly
Fragly11mo ago
you can change the PORT by simply adding a PORT service variable and setting it to the port you want it to have Always recommended to use the PORT railway provides when possible though Why do you need LetsEncrypt?
Patrick〽
Patrick〽11mo ago
I have a problem with http call like : The page at 'https://support.vaulth.app/step3' was loaded over HTTPS, but requested an insecure script 'http://support.vaulth.app/lb-faveo/js/prism.js'. This request has been blocked; the content must be served over HTTPS.
Fragly
Fragly11mo ago
Make sure you use https and not http oh, you are but it's forcing http?
Patrick〽
Patrick〽11mo ago
Yes i don't understand why :/ The problem can be the HTTPS port ? or LetsEncrypt ?
Fragly
Fragly11mo ago
Railway gives your site SSL themselves, you shouldn't be using LetsEncrypt
Patrick〽
Patrick〽11mo ago
Hmmm Im lost tbh So i can't change the https port on railway ?
Fragly
Fragly11mo ago
Oh you meant like change it from 443 to something else? you should be able to with a reverse proxy like caddy Although I don't recommend using that method to fix the problem.. Not sure what the problem is though, best wait for someone who knows to pitch in i'd say
Patrick〽
Patrick〽11mo ago
How can i use the poxy caddy ? How can i desactavte the ssl ?
Brody
Brody11mo ago
not applicable at this time you can only access http apps externally from https and port 443, there's nothing you can do right now to change this.
Fragly
Fragly11mo ago
oh okay, thank you
Brody
Brody11mo ago
don't make requests to assets with http, make sure all your requests to assets are using https
Want results from more Discord servers?
Add your server