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
Project ID:
0f5eadec-41b9-4d22-b1cf-efcaa05259b6
0f5eadec-41b9-4d22-b1cf-efcaa05259b6
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?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.
Make sure you use
https
and not http
oh, you are but it's forcing http?Yes i don't understand why :/
The problem can be the HTTPS port ? or LetsEncrypt ?
Railway gives your site SSL themselves, you shouldn't be using LetsEncrypt
Hmmm
Im lost tbh
So i can't change the https port on railway ?
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
How can i use the poxy caddy ?
How can i desactavte the ssl ?
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.
oh okay, thank you
don't make requests to assets with http, make sure all your requests to assets are using https