2024年8月4日

This commit is contained in:
chenc 2024-08-04 10:46:21 +08:00
parent 81fe5abfec
commit f970bb41c2
8 changed files with 21 additions and 7 deletions

View File

@ -8,7 +8,7 @@ ELK_VERSION=7.17.22
ELASTICSEARCH_HOST_HTTP_PORT=9200
ELK_ELASTIC_PASSWD=hello321
JAVAGATEWAY_VERSION=1.0.1
JAVAGATEWAY_VERSION=1.0.3
NODEJS_VERSION=18.18.2
OPENRESTY_VERSION=1.25.3.1
REDIS_VERSION=7.2.5

1
.gitignore vendored
View File

@ -5,5 +5,6 @@ logs/*
openresty/config/vhost/*
!openresty/config/vhost/ssl
!openresty/config/vhost/default.conf.example
!openresty/config/vhost/logdate.conf
redis/data
.env

View File

@ -33,7 +33,8 @@ services:
container_name: java-gateway
restart: always
volumes:
- "./java_gateway:/app"
- "./java_gateway/jar:/app"
command: ["/app/java_gateway1.jar","/app/java_gateway2.jar"]
extra_hosts:
- "host.docker.internal:host-gateway"
networks:

View 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

View File

@ -68,6 +68,7 @@ lua_shared_dict my_limit_req_store1 100m;
server {
listen 80;
listen [::]:80;
http2 on;
server_name _;
access_log /data/wwwlogs/access_nginx.log combined;
root /data/wwwroot/default;
@ -109,8 +110,9 @@ lua_shared_dict my_limit_req_store1 100m;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
ssl_certificate /usr/local/openresty/nginx/conf/vhost/ssl/cert.pem;
ssl_certificate_key /usr/local/openresty/nginx/conf/vhost/ssl/private.key;
ssl_protocols TLSv1.2 TLSv1.3;

View File

@ -1,9 +1,9 @@
server {
listen 80;
listen [::]:80;
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
http2 on;
# listen 443 ssl;
# listen [::]:443 ssl;
# 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_protocols TLSv1.2 TLSv1.3;

View File

@ -0,0 +1,4 @@
map $time_iso8601 $logdate {
default 'date-not-found';
'~^(?<ymd>\d{4}-\d{2}-\d{2})' $ymd;
}