Closed Lyro1 closed 3 years ago
The SERVER_NAME must be full URL to make Mercure listen on http only example
USE_FORWARDED_HEADERS=1 MERCURE_PUBLISHER_JWT_KEY='!xxx!' MERCURE_SUBSCRIBER_JWT_KEY='!xxx!' SERVER_NAME='http://127.0.0.1:3001' ./mercure run -config Caddyfile
or change the line {$SERVER_NAME:localhost}
to http://127.0.0.1:3001
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello there,
I have been developing a web app using Mercure Hub, and faced no issue in my local environment. I now got a server on which I set up a Nginx Web Server so that I could host my app.
The app is made of 3 blocks, each block having its own Nginx space:
my-app-mercure.mydomain.com
my-app-back.mydomain.com
my-app.mydomain.com
Back and front are working as expected.
But, when I tried to setup Mercure on my web server, I create its Nginx space with the following setup:
I use Mercure Hub in 0.11, so it uses a CaddyServer. My
Caddyfile
is like so:When I try to run mercure, I get the following error:
Which is normal because Nginx uses port 443. How can I use Nginx with the CaddyServer on this new Mercure Hub version?