dunglas/mercure

I'm trying to get mercure to work on a Plesk server, but it's unreachable

adares2 opened this issue · 1 comments

here are my enviroment variables

CADDY_VERSION : v2.7.6
XDG_CONFIG_HOME: /config
XDG_DATA_HOME: /data
MERCURE_TRANSPORT_URL:  bolt:///data/mercure.db
MERCURE_PUBLISHER_JWT: secret
MERCURE_SUBSCRIBER_JWT_KEY: secret
CORS_ALLOWED_ORIGINS: https://my_domain
MERCURE_EXTRA_DIRECTIVES: cors_origins https://my_domain
server_name: srv0
https_port: myhttps_port

here are my logs

{"level":"info","ts":1705102445.4517362,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
{"level":"warn","ts":1705102445.4733856,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":3}
{"level":"info","ts":1705102445.4797852,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
{"level":"info","ts":1705102445.4800344,"logger":"http.auto_https","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
{"level":"info","ts":1705102445.480054,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
{"level":"info","ts":1705102445.4877915,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0004ec100"}
{"level":"info","ts":1705102445.4885726,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/data/caddy"}
{"level":"info","ts":1705102445.4887474,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"warn","ts":1705102445.552862,"logger":"pki.ca.local","msg":"installing root certificate (you might be prompted for password)","path":"storage:pki/authorities/local/root.crt"}
{"level":"info","ts":1705102445.614295,"msg":"define JAVA_HOME environment variable to use the Java trust"}
{"level":"info","ts":1705102445.6144974,"msg":"warning: \"certutil\" is not available, install \"certutil\" with \"apt install libnss3-tools\" or \"yum install nss-tools\" and try again"}
{"level":"info","ts":1705102446.0380518,"msg":"certificate installed properly in linux trusts"}
{"level":"info","ts":1705102446.0447392,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
{"level":"info","ts":1705102446.0450568,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1705102446.0451722,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
{"level":"info","ts":1705102446.0451791,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["localhost"]}
{"level":"info","ts":1705102446.0455825,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1705102446.045589,"msg":"serving initial configuration"}
{"level":"info","ts":1705102446.1351051,"logger":"tls.obtain","msg":"acquiring lock","identifier":"localhost"}
{"level":"info","ts":1705102446.1352608,"logger":"tls.obtain","msg":"lock acquired","identifier":"localhost"}
{"level":"info","ts":1705102446.1353247,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"localhost"}
{"level":"info","ts":1705102446.136462,"logger":"tls.obtain","msg":"certificate obtained successfully","identifier":"localhost"}
{"level":"info","ts":1705102446.1365151,"logger":"tls.obtain","msg":"releasing lock","identifier":"localhost"}
{"level":"warn","ts":1705102446.136822,"logger":"tls","msg":"stapling OCSP","error":"no OCSP stapling for [localhost]: no OCSP server specified in certificate","identifiers":["localhost"]}

when i tried to connect via chrome i got the following error: Failed to load resource: net::ERR_CONNECTION_REFUSED.
Plesk also binds the 80 port, and the 2019 port, perhaps there is the error

I was successful... here is a link if someone have the same problems...
klick