This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
How to get server to run on port 80 and 443 #180
Unanswered
officialbubies
asked this question in
Questions
Replies: 0 comments 1 reply
-
In theory, it should be working on port 443 for HTTPS because of this line. I'm running it on fly.io on port 443. To use port If you need to pass a custom keyfile/certfile, you might need to add a https: [
port: 443,
cipher_suite: :strong,
keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
certfile: System.get_env("SOME_APP_SSL_CERT_PATH")
] That's the configuration I have for the dev environment. Let me know if that works and/or if we need to make code changes to make it easier. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am hosting this app on an AWS EC2 instance running Ubuntu. I have everything setup but cannot figure out how to get the server to be accessed on port 80 HTTP and 443 HTTPS. I have .pem files. I'm not sure if I need to change something in one of the /config .exs files or if I need to run a reverse proxy through Nginx etc. How is the appropriate way to do this? Thanks
Beta Was this translation helpful? Give feedback.
All reactions