Bastillion icon indicating copy to clipboard operation
Bastillion copied to clipboard

Nginx reverse proxy and jetty server configuration

Open Nutties93 opened this issue 3 years ago • 3 comments

Hi all,

I'm running bastillion in a VM behind my nginx. I was able to run the bastillion instance at :8443.

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. image

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:

Nutties93 avatar May 20 '21 10:05 Nutties93

Managed to find the problem. added the modules to java -jar start.jar--add-to-start=deploy,http and ran it once.

Nutties93 avatar May 21 '21 05:05 Nutties93

@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.

majkel1024 avatar Oct 06 '22 11:10 majkel1024

Did you change the method in start.ini to use http instead of https ? https://www.bastillion.io/docs/installation/ports

tperrindell avatar Oct 09 '22 16:10 tperrindell