euh ouais j'ai ptet rajouter un VNC, bref on verra

This commit is contained in:
piair
2023-09-20 11:46:35 +02:00
parent 58ab110d55
commit a07b55fab7
4 changed files with 81 additions and 3 deletions

View File

@ -27,6 +27,19 @@ server {
proxy_pass http://grafana;
rewrite ^/grafana/(.*) /\$1 break;
}
location /novnc/ {
proxy_pass http://127.0.0.1:6080/;
}
location /novnc/websockify {
proxy_pass http://127.0.0.1:6080/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location / {
proxy_set_header X-Forwarded-For \$remote_addr;
proxy_set_header Host \$http_host;
@ -47,4 +60,10 @@ cp /app/MsRewards-Reborn/config/grafana.ini /etc/grafana/
grafana-cli plugins install frser-sqlite-datasource
printf "setting up default dashboard"
cp /app/MsRewards-Reborn/config/Stats-dashbord.json /usr/share/grafana/public/dashboards/home.json
cp /app/MsRewards-Reborn/config/Stats-dashbord.json /usr/share/grafana/public/dashboards/home.json
websockify -D \
--web /usr/share/novnc/ \
6080 \
localhost:2345