Adding remark42 to my blog #864
-
Hi guys, I'm new to hosting services and my own site. For my blog I subscribed to a webhosting offer, which works fine. This is my setup:
However the remark42 "quick installation test" fails, https://remark42.mydomain.com/web is not available. mydomain.com.txt I know they look different to the nginx configuration in the remark42 repository: But I didn't want to screw up any of the certbot settings. The remark42-nginx-documentation states:
So maybe I use the wrong proxy_pass ip? proxy_pass https://45.69.156.134/; # example for my vps ip In my docker-compose.yml I've specified REMARK_PORT=12345 Any ideas? Could someone please point me to the right direction? Many thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 27 replies
-
Please post docker-compose logs output for your container to pastebin, it will help investigation greatly. |
Beta Was this translation helpful? Give feedback.
-
@paskal I didn't know about pastebin, great tool, thanks for sharing! Here are the logs, configuration files or any other output, that might be helpful: docker-compose logs In the docker-compose logs, there is a warning that the cert file was not found (https server terminated). But keep in mind, that I try to get the remark42 container working as a non-root user. Any help is very much appreciated! |
Beta Was this translation helpful? Give feedback.
-
I solved the ssl warning by changing the SSL_TYPE to 'auto' in my docker-compose.yml: docker-compose logs with ssl_type=auto Unfortunately the remark42-demo page still doesn't show up. |
Beta Was this translation helpful? Give feedback.
-
Problem in the first docker-compose log: In the second log, I saw no access entries so requests don't seem to reach it. After you changed the settings I think the problem is that your Nginx tries to connect to itself instead of connecting to the container, as your container is not exposing any ports to the host machine. Remove following lines from your docker-compose.yml to disable HTTPS termination inside remark42 container, as we want your nginx to handle the HTTPS part and talk to remark backend by HTTP. - SSL_TYPE=static
- SSL_PORT=443
- SSL_CERT=/etc/letsencrypt/live/mydomain.com/fullchain.pem
- SSL_KEY=/etc/letsencrypt/live/mydomain.com/privkey.pem Then expose port 8080 of remark container to the host but only locally, to do that add the following lines to the same container configuration:
The last step is fixing nginx configuration
After that please try again and if it doesn't work, please post the docker-compose logs of the container and nginx logs after few attempts to reach the comments. |
Beta Was this translation helpful? Give feedback.
-
@paskal Thank you very much for your help! 🙏 I followed your suggestions and modified my docker-compose.yml and the nginx configuration for remark42.mydomain.com. docker-compose logs 2 |
Beta Was this translation helpful? Give feedback.
-
wait: Do I need to have the ngx_http_log_module installed? |
Beta Was this translation helpful? Give feedback.
@paskal Thank you very much for your help! 🙏
I followed your suggestions and modified my docker-compose.yml and the nginx configuration for remark42.mydomain.com.
Unfortunately it still doesn't work, although I cleared the browser cache and also changed the browser. 😢
I removed REMARK_PORT=12345 from the docker-compose.yml, but still no success.
docker-compose logs 2
nginx remark42.log
nginx error.log
nginx access.log