bastillion-io / Bastillion

Bastillion is a web-based SSH console that centrally manages administrative access to systems. Web-based administration is combined with management and distribution of user's public SSH keys.
https://www.bastillion.io
Other
3.18k stars 381 forks source link

Nginx reverse proxy and jetty server configuration #383

Open Nutties93 opened 3 years ago

Nutties93 commented 3 years ago

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 commented 3 years ago

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

majkel1024 commented 2 years ago

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

tperrindell commented 2 years ago

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