Skip to content

Commit

Permalink
Add second proxy in nginx. Fix Java lib dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Emzy committed Dec 9, 2022
1 parent 1b556c2 commit af1af5c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/collectd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ LoadPlugin write_graphite
</MBean>

<Connection>
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:6969/jmxrmi"
ServiceURL "service:jmx:rmi:///jndi/rmi://127.0.0.1:6969/jmxrmi"
Collect "memory_pool"
Collect "memory"
</Connection>
Expand Down
3 changes: 3 additions & 0 deletions scripts/install_collectd_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ sudo -H -i -u "${ROOT_USER}" systemctl daemon-reload
sudo -H -i -u "${ROOT_USER}" systemctl enable nginx.service
sudo -H -i -u "${ROOT_USER}" systemctl enable collectd.service

echo "[*] Symlink libjvm.so for collectd to work"
sudo -H -i -u "${ROOT_USER}" ln -s /usr/lib/jvm/openjdk-11.0.2/lib/server/libjvm.so /lib/x86_64-linux-gnu/libjvm.so

echo "[*] Restarting services"
set +e
service bisq status >/dev/null 2>&1
Expand Down
10 changes: 10 additions & 0 deletions scripts/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,14 @@ stream {

proxy_ssl_session_reuse on;
}
server {
listen 127.0.0.1:13003;
proxy_pass monitor.bisq.network:13002;
proxy_ssl on;

proxy_ssl_certificate /etc/nginx/cert.crt;
proxy_ssl_certificate_key /etc/nginx/cert.key;

proxy_ssl_session_reuse on;
}
}

0 comments on commit af1af5c

Please sign in to comment.