Updated nginx version inside nginx.conf
This commit is contained in:
@@ -1,86 +0,0 @@
|
|||||||
# For more information on configuration, see:
|
|
||||||
# * Official English Documentation: http://nginx.org/en/docs/
|
|
||||||
# * Official Russian Documentation: http://nginx.org/ru/docs/
|
|
||||||
|
|
||||||
|
|
||||||
worker_processes auto;
|
|
||||||
error_log /var/opt/rh/rh-nginx112/log/nginx/error.log;
|
|
||||||
pid /var/opt/rh/rh-nginx112/run/nginx/nginx.pid;
|
|
||||||
|
|
||||||
# Load dynamic modules. See /opt/rh/rh-nginx112/root/usr/share/doc/README.dynamic.
|
|
||||||
include /opt/rh/rh-nginx112/root/usr/share/nginx/modules/*.conf;
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
||||||
|
|
||||||
access_log /var/opt/rh/rh-nginx112/log/nginx/access.log main;
|
|
||||||
|
|
||||||
sendfile on;
|
|
||||||
tcp_nopush on;
|
|
||||||
tcp_nodelay on;
|
|
||||||
keepalive_timeout 65;
|
|
||||||
types_hash_max_size 2048;
|
|
||||||
|
|
||||||
gzip on;
|
|
||||||
gzip_types application/xml application/json text/css text/javascript application/javascript;
|
|
||||||
gzip_vary on;
|
|
||||||
gzip_comp_level 6;
|
|
||||||
gzip_min_length 500;
|
|
||||||
|
|
||||||
include /etc/opt/rh/rh-nginx112/nginx/mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
# Load modular configuration files from the /etc/nginx/conf.d directory.
|
|
||||||
# See http://nginx.org/en/docs/ngx_core_module.html#include
|
|
||||||
# for more information.
|
|
||||||
include /opt/app-root/etc/nginx.d/*.conf;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8080 default_server;
|
|
||||||
listen [::]:8080 default_server;
|
|
||||||
server_name _;
|
|
||||||
root /opt/app-root/src;
|
|
||||||
|
|
||||||
# Load configuration files for the default server block.
|
|
||||||
include /opt/app-root/etc/nginx.default.d/*.conf;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
expires -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(?:jpg|jpeg|gif|png|ico|woff2)$ {
|
|
||||||
expires 1M;
|
|
||||||
add_header Cache-Control "public";
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(?:js|json|css)$ {
|
|
||||||
add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate";
|
|
||||||
}
|
|
||||||
|
|
||||||
# underscores_in_headers on;
|
|
||||||
# $RESOLVER
|
|
||||||
|
|
||||||
# # JWT TOKEN
|
|
||||||
# location /token/jwt/rest/idp/v0/dafa {
|
|
||||||
# proxy_pass $JWT_URL;
|
|
||||||
# }
|
|
||||||
|
|
||||||
|
|
||||||
error_page 404 /404.html;
|
|
||||||
location = /40x.html {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
error_page 500 502 503 504 /50x.html;
|
|
||||||
location = /50x.html {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -4,11 +4,11 @@
|
|||||||
|
|
||||||
|
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
error_log /var/opt/rh/rh-nginx112/log/nginx/error.log;
|
error_log /var/opt/rh/rh-nginx116/log/nginx/error.log;
|
||||||
pid /var/opt/rh/rh-nginx112/run/nginx/nginx.pid;
|
pid /var/opt/rh/rh-nginx116/run/nginx/nginx.pid;
|
||||||
|
|
||||||
# Load dynamic modules. See /opt/rh/rh-nginx112/root/usr/share/doc/README.dynamic.
|
# Load dynamic modules. See /opt/rh/rh-nginx116/root/usr/share/doc/README.dynamic.
|
||||||
include /opt/rh/rh-nginx112/root/usr/share/nginx/modules/*.conf;
|
include /opt/rh/rh-nginx116/root/usr/share/nginx/modules/*.conf;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
@@ -19,7 +19,7 @@ http {
|
|||||||
'$status $body_bytes_sent "$http_referer" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
access_log /var/opt/rh/rh-nginx112/log/nginx/access.log main;
|
access_log /var/opt/rh/rh-nginx116/log/nginx/access.log main;
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
@@ -33,7 +33,7 @@ http {
|
|||||||
gzip_comp_level 6;
|
gzip_comp_level 6;
|
||||||
gzip_min_length 500;
|
gzip_min_length 500;
|
||||||
|
|
||||||
include /etc/opt/rh/rh-nginx112/nginx/mime.types;
|
include /etc/opt/rh/rh-nginx116/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
# Load modular configuration files from the /etc/nginx/conf.d directory.
|
# Load modular configuration files from the /etc/nginx/conf.d directory.
|
||||||
|
|||||||
7
openshift/dev/Jenkinsfile
vendored
7
openshift/dev/Jenkinsfile
vendored
@@ -92,14 +92,17 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage("Build application") {
|
stage("Build application") {
|
||||||
|
environment {
|
||||||
|
NGINX_PATH = "${dist_path}/."
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
echo '### Building application... ###'
|
echo '### Building application... ###'
|
||||||
|
|
||||||
sh '''
|
sh '''
|
||||||
npm run build:pega
|
npm run build:pega
|
||||||
|
|
||||||
#cp nginx/nginx.conf ${NGINX_PATH}
|
cp nginx/nginx.conf ${NGINX_PATH}
|
||||||
cp -r nginx/* ${NGINX_PATH}
|
#cp -r nginx/* ${NGINX_PATH}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
echo '### Application built! ###'
|
echo '### Application built! ###'
|
||||||
|
|||||||
Reference in New Issue
Block a user