mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-06-19 17:34:45 +02:00
euh ouais j'ai ptet rajouter un VNC, bref on verra
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user