Fork me on GitHub
#luminus
<
2018-07-18
>
meguru10:07:41

Hello, I want to run luminus apps with https. So, I could try running my app with "-p 443" But I got this message $ lein run -p 443 2018-07-18 18:56:22,906 [main] INFO hogehoge.env - -=[hogehoge started successfully using the development profile]=- 2018-07-18 18:56:23,237 [main] INFO luminus.http-server - starting HTTP server on port 443 2018-07-18 18:56:23,243 [main] ERROR luminus.http-server - server failed to start onport443 java.net.SocketException: Permission denied How can I do HTTPS communication?

jumar13:07:25

You're likely getting "permission denied" because the first 1023 port numbers are privileged. Anyway, just by using the 443 port you won't get what you want. You need to configure your http server properly and provide certificates (for immutant you may want to look at the ssl-port option - see https://github.com/immutant/feature-demo) A common way to do it is to introduce "ssl proxy" (e.g. nginx).

jmayaalv14:07:04

@e.tmailbank here you have some docs. http://www.luminusweb.net/docs/deployment.md Look for Setting up SSL

sveri14:07:35

I'd also suggest to use nginx as a proxy. Together with letsencrypt its really easy to setup https

Bravi19:07:50

hi everyone. is there a guide of how to use create-migration function?

Bravi19:07:53

from REPL

Bravi19:07:47

ok it looks like after starting REPL, you need to run (restart) and then the function works 🙂

meguru21:07:45

Thanks your advice! I can access my app via https using nginx and letsencrypt(certbot)!

👍 4