Skip to content

Commit b181090

Browse files
committed
RHEL9 install configs updated.
1 parent f28bb9a commit b181090

File tree

3 files changed

+91
-16
lines changed

3 files changed

+91
-16
lines changed

platform-rhel9/json_scada_http.conf

+7-7
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@
6666
proxy_pass http://127.0.0.1:8080/Invoke/;
6767
}
6868

69-
# reverse proxy, redirect ajax requests to OSHMI webserver.exe
70-
location /htdocs/shellapi.rjs {
71-
proxy_pass http://jsonscadarealtimewebserver/htdocs/shellapi.rjs;
72-
proxy_set_header Host $host;
73-
proxy_set_header X-Real-IP $remote_addr;
74-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
75-
}
69+
# # reverse proxy, redirect ajax requests to OSHMI webserver.exe
70+
# location /htdocs/shellapi.rjs {
71+
# proxy_pass http://jsonscadarealtimewebserver/htdocs/shellapi.rjs;
72+
# proxy_set_header Host $host;
73+
# proxy_set_header X-Real-IP $remote_addr;
74+
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
75+
# }
7676

7777
# reverse proxy, redirect grafana requests (pass it to nodejs server_realtime_auth that redirects to grafana)
7878
location /grafana/ {

platform-rhel9/json_scada_https.conf

-9
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@
7070
# proxy_pass http://127.0.0.1:8080/Invoke/;
7171
# }
7272

73-
74-
# # reverse proxy, redirect ajax requests to OSHMI webserver.exe
75-
# location /htdocs/shellapi.rjs {
76-
# proxy_pass http://jsonscadarealtimewebserver/htdocs/shellapi.rjs;
77-
# proxy_set_header Host $host;
78-
# proxy_set_header X-Real-IP $remote_addr;
79-
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
80-
# }
81-
8273
# # reverse proxy, redirect grafana requests (pass it to nodejs server_realtime_auth that redirects to grafana)
8374
# location /grafana/ {
8475
# proxy_pass http://127.0.0.1:8080/grafana/;

platform-rhel9/nginx.conf

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# For more information on configuration, see:
2+
# * Official English Documentation: http://nginx.org/en/docs/
3+
# * Official Russian Documentation: http://nginx.org/ru/docs/
4+
5+
user nginx;
6+
worker_processes auto;
7+
error_log /var/log/nginx/error.log;
8+
pid /run/nginx.pid;
9+
10+
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
11+
include /usr/share/nginx/modules/*.conf;
12+
13+
events {
14+
worker_connections 1024;
15+
}
16+
17+
http {
18+
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
19+
'$status $body_bytes_sent "$http_referer" '
20+
'"$http_user_agent" "$http_x_forwarded_for"';
21+
22+
access_log /var/log/nginx/access.log main;
23+
24+
sendfile on;
25+
tcp_nopush on;
26+
tcp_nodelay on;
27+
keepalive_timeout 65;
28+
types_hash_max_size 4096;
29+
30+
include /etc/nginx/mime.types;
31+
default_type application/octet-stream;
32+
33+
# Load modular configuration files from the /etc/nginx/conf.d directory.
34+
# See http://nginx.org/en/docs/ngx_core_module.html#include
35+
# for more information.
36+
include /etc/nginx/conf.d/*.conf;
37+
38+
# server {
39+
# listen 80;
40+
# listen [::]:80;
41+
# server_name _;
42+
# root /usr/share/nginx/html;
43+
#
44+
# # Load configuration files for the default server block.
45+
# include /etc/nginx/default.d/*.conf;
46+
#
47+
# error_page 404 /404.html;
48+
# location = /404.html {
49+
# }
50+
#
51+
# error_page 500 502 503 504 /50x.html;
52+
# location = /50x.html {
53+
# }
54+
# }
55+
56+
# Settings for a TLS enabled server.
57+
#
58+
# server {
59+
# listen 443 ssl http2;
60+
# listen [::]:443 ssl http2;
61+
# server_name _;
62+
# root /usr/share/nginx/html;
63+
#
64+
# ssl_certificate "/etc/pki/nginx/server.crt";
65+
# ssl_certificate_key "/etc/pki/nginx/private/server.key";
66+
# ssl_session_cache shared:SSL:1m;
67+
# ssl_session_timeout 10m;
68+
# ssl_ciphers PROFILE=SYSTEM;
69+
# ssl_prefer_server_ciphers on;
70+
#
71+
# # Load configuration files for the default server block.
72+
# include /etc/nginx/default.d/*.conf;
73+
#
74+
# error_page 404 /404.html;
75+
# location = /40x.html {
76+
# }
77+
#
78+
# error_page 500 502 503 504 /50x.html;
79+
# location = /50x.html {
80+
# }
81+
# }
82+
83+
}
84+

0 commit comments

Comments
 (0)