Skip to content

Commit

Permalink
Safer creation of Grafana service and example of postgresql as config…
Browse files Browse the repository at this point in the history
… host for Grafana on Windows. Release notes: change on formatting.
  • Loading branch information
riclolsen committed Oct 4, 2022
1 parent 83ccbd3 commit 82f595a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 40 deletions.
4 changes: 3 additions & 1 deletion platform-windows/create_services.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ nssm set JSON_SCADA_postgresql Start SERVICE_AUTO_START

nssm install JSON_SCADA_grafana "C:\json-scada\platform-windows\grafana-runtime\bin\grafana-server.exe"
nssm set JSON_SCADA_grafana AppDirectory "C:\json-scada\platform-windows\grafana-runtime\bin"
nssm set JSON_SCADA_grafana AppEnvironmentExtra GF_SERVER_DOMAIN=127.0.0.1 GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:80/grafana/ GF_SERVER_SERVE_FROM_SUB_PATH=true GF_AUTH_PROXY_ENABLED=true GF_AUTH_PROXY_ENABLE_LOGIN_TOKEN=true GF_AUTH_DISABLE_SIGNOUT_MENU=true
nssm set JSON_SCADA_grafana AppEnvironmentExtra GF_SERVER_DOMAIN="127.0.0.1" GF_SERVER_ROOT_URL="%(protocol)s://%(domain)s:80/grafana/" GF_SERVER_SERVE_FROM_SUB_PATH="true" GF_AUTH_PROXY_ENABLED="true" GF_AUTH_PROXY_ENABLE_LOGIN_TOKEN="true" GF_AUTH_DISABLE_SIGNOUT_MENU="true"
rem example of using postgresql to host grafana config (necessary for multiple web servers):
rem nssm set JSON_SCADA_grafana AppEnvironmentExtra GF_DATABASE_TYPE="postgres" GF_DATABASE_HOST="127.0.0.1" GF_DATABASE_USER="postgres" GF_SERVER_DOMAIN="127.0.0.1" GF_SERVER_ROOT_URL="%(protocol)s://%(domain)s:80/grafana/" GF_SERVER_SERVE_FROM_SUB_PATH="true" GF_AUTH_PROXY_ENABLED="true" GF_AUTH_PROXY_ENABLE_LOGIN_TOKEN="true" GF_AUTH_DISABLE_SIGNOUT_MENU="true"
REM nssm set JSON_SCADA_grafana AppStdout "C:\json-scada\log\grafana-stdout.log"
REM nssm set JSON_SCADA_grafana AppStderr "C:\json-scada\log\grafana-stderr.log"
nssm set JSON_SCADA_grafana Start SERVICE_AUTO_START
Expand Down
78 changes: 39 additions & 39 deletions platform-windows/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{json:scada}

© 2008-2022* Ricardo L. Olsen
© 2008-2022 Ricardo L. Olsen
(https://www.linkedin.com/in/ricardo-olsen/)

This program is free software: you can redistribute it and/or modify
Expand All @@ -20,45 +20,45 @@ The system will install to "c:\json-scada\" (on Windows).

Acknowledgements:

MongoDB* https://github.com/mongodb/mongo, https://www.mongodb.com/
PostgreSQL* https://www.postgresql.org/
TimescaleDB* https://github.com/timescale/timescaledb, https://www.timescale.com/
Grafana* https://github.com/grafana/grafana, https://grafana.com/
Lib60870 By MZ Automation* https://github.com/mz-automation/lib60870, https://www.mz-automation.de/
ICCP Client by Fernando Covatti* https://github.com/fcovatti/iccp
Opendnp3* https://github.com/dnp3/opendnp3
PLC4X* https://github.com/apache/plc4x
Libplctag* https://github.com/libplctag/libplctag
Node-opcua* https://github.com/node-opcua/node-opcua
OPC-UA* https://github.com/OPCFoundation/UA-.NETStandard
Telegraf* https://github.com/influxdata/telegraf
Inkscape* https://inkscape.org
Inkscape + SAGE* https://sourceforge.net/projects/sage-scada
Inkscape + SAGE (updated)* https://gitlab.com/lvta0909/inkscape
Chromium* by "The Chromium Authors"
Chromium x86 binaries* http://chromium.woolyss.com/
NGINX* http://nginx.org/
Node.js* https://nodejs.org/
Express* https://expressjs.com/pt-br/
Dotnet* https://dotnet.microsoft.com/download
Golang* https://golang.org/
MongoDB - https://github.com/mongodb/mongo, https://www.mongodb.com/
PostgreSQL - https://www.postgresql.org/
TimescaleDB - https://github.com/timescale/timescaledb, https://www.timescale.com/
Grafana - https://github.com/grafana/grafana, https://grafana.com/
Lib60870 By MZ Automation - https://github.com/mz-automation/lib60870, https://www.mz-automation.de/
ICCP Client by Fernando Covatti - https://github.com/fcovatti/iccp
Opendnp3 - https://github.com/dnp3/opendnp3
PLC4X - https://github.com/apache/plc4x
Libplctag - https://github.com/libplctag/libplctag
Node-opcua - https://github.com/node-opcua/node-opcua
OPC-UA - https://github.com/OPCFoundation/UA-.NETStandard
Telegraf - https://github.com/influxdata/telegraf
Inkscape - https://inkscape.org
Inkscape + SAGE - https://sourceforge.net/projects/sage-scada
Inkscape + SAGE (updated) - https://gitlab.com/lvta0909/inkscape
Chromium by "The Chromium Authors"
Chromium x86 binaries - http://chromium.woolyss.com/
NGINX - http://nginx.org/
Node.js - https://nodejs.org/
Express - https://expressjs.com/pt-br/
Dotnet - https://dotnet.microsoft.com/download
Golang - https://golang.org/
Open Sans Fonts by Steve Matteson
Source Sans Pro by Adobe Systems Incorporated. License* http://scripts.sil.org/OFL
Google Fonts* https://fonts.google.com/
JQuery* http://jquery.com
Shortcut* http://www.openjs.com/scripts/events/keyboard_shortcuts
Core JS* http://www.sitepoint.com
Modernzr* http://www.modernizr.com
Flot* http://www.flotcharts.org
Snap SVG* http://snapsvg.io
Chroma.js* https://github.com/gka/chroma.js
CSS Animation Cheat Sheet* http://www.justinaguilar.com/animations
D3JS* http://d3js.org
Radar-chart-d3* https://github.com/alangrafu/radar-chart-d3
Vega A Visualization Grammar* https://vega.github.io/vega
NSSM* The Non-Sucking Service Manager: http://nssm.cc
Some icons from* http://keyamoon.com/icomoon and http://raphaeljs.com/icons
CSS Loaders from Luke Haas* https://projects.lukehaas.me/css-loaders/
Source Sans Pro by Adobe Systems Incorporated. License - http://scripts.sil.org/OFL
Google Fonts - https://fonts.google.com/
JQuery - http://jquery.com
Shortcut - http://www.openjs.com/scripts/events/keyboard_shortcuts
Core JS - http://www.sitepoint.com
Modernzr - http://www.modernizr.com
Flot - http://www.flotcharts.org
Snap SVG - http://snapsvg.io
Chroma.js - https://github.com/gka/chroma.js
CSS Animation Cheat Sheet - http://www.justinaguilar.com/animations
D3JS - http://d3js.org
Radar-chart-d3 - https://github.com/alangrafu/radar-chart-d3
Vega A Visualization Grammar - https://vega.github.io/vega
NSSM - The Non-Sucking Service Manager: http://nssm.cc
Some icons from - http://keyamoon.com/icomoon and http://raphaeljs.com/icons
CSS Loaders from Luke Haas - https://projects.lukehaas.me/css-loaders/

-------------------------------------------------------------------

Expand Down

0 comments on commit 82f595a

Please sign in to comment.