Bastillion
Bastillion copied to clipboard
Nginx reverse proxy and jetty server configuration
Hi all,
I'm running bastillion in a VM behind my nginx. I was able to run the bastillion instance at
However, when I create a custom url and try to proxy pass to the above ip address and port. The nginx server seems to be unable to connect to the bastillion instance. It works for my other services. I'm not too sure why.
I tried changing the start.ini.
I'm getting this error! Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server are:
Managed to find the problem. added the modules to java -jar start.jar--add-to-start=deploy,http and ran it once.
@Nutties93 can you please explain, how exactly did you manage that ? I did that java -jar jetty/start.jar --add-to-start=deploy,http
INFO : webapp transitively enabled, ini template available with --add-to-start=webapp INFO : server transitively enabled, ini template available with --add-to-start=server INFO : security transitively enabled INFO : servlet transitively enabled INFO : http initialized in ${jetty.base}/start.ini INFO : threadpool transitively enabled, ini template available with --add-to-start=threadpool INFO : bytebufferpool transitively enabled, ini template available with --add-to-start=bytebufferpool INFO : deploy initialized in ${jetty.base}/start.ini MKDIR : ${jetty.base}/webapps INFO : Base directory was modified
in start.ini I have
Connector host/address to bind to
jetty.http.host=0.0.0.0
Connector port to listen on
jetty.http.port=8080
but still, after running ./startBastillion.sh I see, that no process listens on 8080 port. Only 8443 -> java.
Did you change the method in start.ini to use http instead of https ? https://www.bastillion.io/docs/installation/ports