2024年8月4日
This commit is contained in:
parent
81fe5abfec
commit
f970bb41c2
@ -8,7 +8,7 @@ ELK_VERSION=7.17.22
|
|||||||
ELASTICSEARCH_HOST_HTTP_PORT=9200
|
ELASTICSEARCH_HOST_HTTP_PORT=9200
|
||||||
ELK_ELASTIC_PASSWD=hello321
|
ELK_ELASTIC_PASSWD=hello321
|
||||||
|
|
||||||
JAVAGATEWAY_VERSION=1.0.1
|
JAVAGATEWAY_VERSION=1.0.3
|
||||||
NODEJS_VERSION=18.18.2
|
NODEJS_VERSION=18.18.2
|
||||||
OPENRESTY_VERSION=1.25.3.1
|
OPENRESTY_VERSION=1.25.3.1
|
||||||
REDIS_VERSION=7.2.5
|
REDIS_VERSION=7.2.5
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,5 +5,6 @@ logs/*
|
|||||||
openresty/config/vhost/*
|
openresty/config/vhost/*
|
||||||
!openresty/config/vhost/ssl
|
!openresty/config/vhost/ssl
|
||||||
!openresty/config/vhost/default.conf.example
|
!openresty/config/vhost/default.conf.example
|
||||||
|
!openresty/config/vhost/logdate.conf
|
||||||
redis/data
|
redis/data
|
||||||
.env
|
.env
|
||||||
@ -33,7 +33,8 @@ services:
|
|||||||
container_name: java-gateway
|
container_name: java-gateway
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- "./java_gateway:/app"
|
- "./java_gateway/jar:/app"
|
||||||
|
command: ["/app/java_gateway1.jar","/app/java_gateway2.jar"]
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
6
java_gateway/run-script.sh
Normal file
6
java_gateway/run-script.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
JAR_FILES=${@:-"/app/captcha-1.0-SNAPSHOT.jar"}
|
||||||
|
for JAR_FILE in $JAR_FILES; do
|
||||||
|
java -jar "$JAR_FILE" &
|
||||||
|
done
|
||||||
|
wait
|
||||||
@ -68,6 +68,7 @@ lua_shared_dict my_limit_req_store1 100m;
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
http2 on;
|
||||||
server_name _;
|
server_name _;
|
||||||
access_log /data/wwwlogs/access_nginx.log combined;
|
access_log /data/wwwlogs/access_nginx.log combined;
|
||||||
root /data/wwwroot/default;
|
root /data/wwwroot/default;
|
||||||
@ -109,8 +110,9 @@ lua_shared_dict my_limit_req_store1 100m;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl;
|
||||||
|
http2 on;
|
||||||
ssl_certificate /usr/local/openresty/nginx/conf/vhost/ssl/cert.pem;
|
ssl_certificate /usr/local/openresty/nginx/conf/vhost/ssl/cert.pem;
|
||||||
ssl_certificate_key /usr/local/openresty/nginx/conf/vhost/ssl/private.key;
|
ssl_certificate_key /usr/local/openresty/nginx/conf/vhost/ssl/private.key;
|
||||||
ssl_protocols TLSv1.2 TLSv1.3;
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
http2 on;
|
||||||
# listen 443 ssl http2;
|
# listen 443 ssl;
|
||||||
# listen [::]:443 ssl http2;
|
# listen [::]:443 ssl;
|
||||||
# ssl_certificate /usr/local/openresty/nginx/conf/vhost/ssl/gateway.jsaix.cn.crt;
|
# ssl_certificate /usr/local/openresty/nginx/conf/vhost/ssl/gateway.jsaix.cn.crt;
|
||||||
# ssl_certificate_key /usr/local/openresty/nginx/conf/vhost/ssl/gateway.jsaix.cn.key;
|
# ssl_certificate_key /usr/local/openresty/nginx/conf/vhost/ssl/gateway.jsaix.cn.key;
|
||||||
# ssl_protocols TLSv1.2 TLSv1.3;
|
# ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
|||||||
4
openresty/config/vhost/logdate.conf
Normal file
4
openresty/config/vhost/logdate.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
map $time_iso8601 $logdate {
|
||||||
|
default 'date-not-found';
|
||||||
|
'~^(?<ymd>\d{4}-\d{2}-\d{2})' $ymd;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user