light weight + admin2

This commit is contained in:
Primakov Alexandr Alexandrovich 2021-10-31 15:47:20 +03:00
parent 5823de394e
commit c648a03a8b
4 changed files with 77 additions and 90 deletions

92
80.conf
View File

@ -3,21 +3,21 @@ server {
server_name inno-ijl.ru; server_name inno-ijl.ru;
# index index.php index.html index.htm index.nginx-debian.html; # index index.php index.html index.htm index.nginx-debian.html;
location /api/ { # location /api/ {
# add_header 'Access-Control-Allow-Origin' '*'; # # add_header 'Access-Control-Allow-Origin' '*';
# # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
# # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
# # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
# proxy_pass http://backend/;
# }
# location /multystub/ {
# # add_header 'Access-Control-Allow-Origin' '*';
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
# add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
# add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://backend/; # proxy_pass http://multystub/;
} # }
location /multystub/ {
# add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://multystub/;
}
location / { location / {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';
@ -32,13 +32,7 @@ server {
listen 80; listen 80;
server_name b1.inno-ijl.ru; server_name b1.inno-ijl.ru;
location /api/ { include "parts/api-multystub.conf";
proxy_pass http://backend/;
}
location /multystub/ {
proxy_pass http://multystub/;
}
location / { location / {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';
@ -72,54 +66,30 @@ server {
proxy_pass http://admin/; proxy_pass http://admin/;
} }
} }
server { server {
listen 80; listen 80;
index index.php index.html index.htm index.nginx-debian.html; server_name admin2.inno-ijl.ru;
server_name khv-sanek.inno-ijl.ru;
root /home/ijl/ijl/apps/xxl;
location / { location / {
try_files $uri $uri/ =404; proxy_pass http://89.223.94.192:3072;
index index.html;
}
location ~ \.php$ {
include fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
} }
} }
server { # server {
listen 80; # listen 80;
index index.php index.html index.htm index.nginx-debian.html; # index index.php index.html index.htm index.nginx-debian.html;
server_name victorina.inno-ijl.ru; # server_name victorina.inno-ijl.ru;
root /home/ijl/ijl/apps/petrus/dist; # root /home/ijl/ijl/apps/petrus/dist;
location / { # location / {
try_files $uri $uri/ /index.html; # try_files $uri $uri/ /index.html;
} # }
} # }
server { # server {
listen 80; # listen 80;
index index.php index.html index.htm index.nginx-debian.html; # index index.html;
server_name alexei.inno-ijl.ru; # server_name alinakhaff.inno-ijl.ru;
root /home/ijl/ijl/apps/alexei; # root /home/ijl/ijl/apps/alinakhaff;
# }
location / {
try_files $uri $uri/ =404;
index index.html;
}
location ~ \.php$ {
include fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
}
server {
listen 80;
index index.html;
server_name alinakhaff.inno-ijl.ru;
root /home/ijl/ijl/apps/alinakhaff;
}

2
docker up.sh Normal file
View File

@ -0,0 +1,2 @@
docker container run --name jenkins-docker --detach --privileged --network jenkins --network-alias docker --env DOCKER_TLS_CERTDIR=/certs --volume jenkins-docker-certs:/certs/client --volume jenkins-data:/var/jenkins_home --publish 2376:2376 docker:dind;
docker container run --name jenkins-blueocean --detach --network jenkins --env DOCKER_HOST=tcp://docker:2376 --env DOCKER_CERT_PATH=/certs/client --env DOCKER_TLS_VERIFY=1 --publish 8080:8080 --publish 50000:50000 --volume jenkins-data:/var/jenkins_home --volume jenkins-docker-certs:/certs/client:ro jenkinsci/blueocean;

View File

@ -27,38 +27,38 @@ http {
server 89.223.94.192:8090; server 89.223.94.192:8090;
} }
server { # server {
listen 8080; # listen 8080;
# server_name inno-ijl.ru; # # server_name inno-ijl.ru;
# index index.php index.html index.htm index.nginx-debian.html; # # index index.php index.html index.htm index.nginx-debian.html;
location / { # location / {
add_header 'Access-Control-Allow-Origin' '*'; # add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://89.223.94.192:8079/; # proxy_pass http://89.223.94.192:8079/;
} # }
location /api { # location /api {
add_header 'Access-Control-Allow-Origin' '*'; # add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://backend; # proxy_pass http://backend;
} # }
location /multystub/ { # location /multystub/ {
#add_header 'Access-Control-Allow-Origin' '*'; # #add_header 'Access-Control-Allow-Origin' '*';
#add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; # #add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://multystub/; # proxy_pass http://multystub/;
} # }
} # }
# include ./83-php.conf; # include ./83-php.conf;
include 3002-apps-static.conf; # include 3002-apps-static.conf;
include 80.conf; include 80.conf;
} }

15
parts/api-miltystub.conf Normal file
View File

@ -0,0 +1,15 @@
location /api/ {
# add_header 'Access-Control-Allow-Origin' '*';
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
# add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
# add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://backend/;
}
location /multystub/ {
# add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://multystub/;
}