Open KvizadSaderah opened 1 year ago
First, check that your instance is properly running. On your VPS curl http://localhost:8500/swagger.json
should return a json payload.
Then ensure that your configuration file (which should be somewhere like /etc/jarr/jarr.json
has api.url defined to https://example.com
Lastly, and I think most importantly, your apache configuration is wrong.
<VirtualHost *:443>
, 80 being the port of HTTPSSLCertificateFile
and SSLCertificateKeyFile
directives with the proper certificate values ProxyPass / http://127.0.0.1:8500/
ProxyPassReverse / http://127.0.0.1:8500/
RequestHeader set X-Forwarded-Proto https
To sum up : the apache file you have there is to redirect http traffic to https. To serve JARR over https you'd need another virtualhost listening on 443. If you can reach JARR locally on you VPS (with curl or wget or whatever) it means JARR is working but you can't reach from the outside. That means you'll need to fix your apache configuration and this will be very dependent on your particular case.
okay, i'm lost on step of docker-compose file.
curl http://localhost:8500/swagger.json
- returned a json payload. But there was no jarr directory in /etc/, because i didn't change paths. REACT_APP_API_URL
to format like http://example.com:8500/
and then it fails on last step make: *** [Makefile:87: init-env-docker] Error 1
or some other errorsdocker system prune -a
to remove everything, still got errors), so i'm wiping out VPS each fail :E and it's quite long to get back with new checksCan you please show valid prod.yml
for use on VPS ? so i just would replace password and domain to mine ? >_>
p.s. my jarr.json
cat jarr.json
{
"jarr_testing": false,
"crawler": {
"login": "admin",
"passwd": "admin"
},
"log": {
"level": 10
},
"db": {
"pg_uri": "postgresql://jarr@postgres:5432/jarr",
"redis": {"host": "redis"},
"metrics": {"host": "redis"}
},
"celery": {"broker": "amqp://rabbitmq//",
"backend": "redis://redis:6379/0",
"broker_url": "amqp://rabbitmq//"},
"auth": {"secret_key": "my not so secret key"}
}
please help '(°Ω°)/
Hello sir!
Can you help me debug, again?
I'm trying to install JARR to VPS to my domain like
https://example.com
And i'm using apache to route it, but can't achive result.
Can you help me what is wrong, and how to fix that?
cat prod.yml
cat example.com.conf
upd: tried to run local on debian VM to (with default settings) to check if it works for me, or i'm doing something wrong from beginning, so it's works localy. But how to tide it to custom domain? that it would work? >_<