Skip to content

Commit

Permalink
RHEL9 install script and configs updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
riclolsen committed May 18, 2024
1 parent 774819e commit 889f159
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion platform-rhel9/json-scada-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ sudo cp postgresql.conf /var/lib/pgsql/16/data/
sudo chown postgres:postgres /var/lib/pgsql/16/data/postgresql.conf
sudo systemctl enable postgresql-16

sudo cp json_scada_*.conf //etc/nginx/conf.d/
sudo cp json_scada_*.conf /etc/nginx/conf.d/
sudo systemctl enable nginx

sudo dnf -y install mongodb-org
Expand Down
18 changes: 0 additions & 18 deletions platform-rhel9/json_scada_access_control.conf

This file was deleted.

21 changes: 15 additions & 6 deletions platform-rhel9/json_scada_http.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@
gzip_disable msie6;

charset UTF-8;

# list of IP addresses with access granted
include json_scada_access_control.conf;

# IP-based access control

# allow local access only by default
allow 127.0.0.1;

# to allow more clients/severs, configure the following option
# allow _IP_hmi_client;
# allow _IP_hmi_redundant_server;

deny all;


location / {
root "/home/jsonscada/json-scada/src/htdocs/";
Expand Down Expand Up @@ -96,15 +105,15 @@
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ .php$ {
include ../platform-windows/nginx_php-runtime/conf/fastcgi_params;
root "c:/json-scada/src/htdocs/";
include fastcgi.conf;
root "/home/jsonscada/json-scada/src/htdocs/";
fastcgi_pass php-fpm;
fastcgi_keep_conn on;
fastcgi_index index.php;
fastcgi_read_timeout 10s;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

# deny access to .htaccess files
location ~ /\.ht {
deny all;
Expand Down
12 changes: 10 additions & 2 deletions platform-rhel9/json_scada_https.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,16 @@
# charset UTF-8;
# #charset ISO-8859-1;

# # list of IP addresses with access granted
# include json_scada_access_control.conf;
# # IP-based access control
#
# # allow local access only by default
# allow 127.0.0.1;
#
# # to allow more clients/severs, configure the following option
# # allow _IP_hmi_client;
# # allow _IP_hmi_redundant_server;
#
# deny all;

# location / {
# root "/home/jsonscada/json-scada/src/htdocs/";
Expand Down

0 comments on commit 889f159

Please sign in to comment.