添加xxljob
This commit is contained in:
parent
1d0c4ccfc3
commit
320382a116
|
|
@ -6,7 +6,8 @@ export NETWORK="swarm_network_$DOMAIN"
|
|||
export HOST_IP=127.0.0.1
|
||||
export REGISTRY=registry.t-aaron.com
|
||||
export SKY_DOMAIN=sky-${DOMAIN}.t-aaron.com
|
||||
|
||||
export CONSUL_DOMAIN=consul-${DOMAIN}.t-aaron.com
|
||||
export XXLJOB_DOMAIN=xxljob-${DOMAIN}.t-aaron.com
|
||||
|
||||
|
||||
export REGISTRY_HOST=${REGISTRY}/tuoheng/
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
server_name consul-bazhong.t-aaron.com;
|
||||
|
||||
ssl_certificate /etc/nginx/t-aaron.com.pem;
|
||||
ssl_certificate_key /etc/nginx/t-aaron.com.key;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
|
||||
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
location / {
|
||||
proxy_pass http://CONSUL_bazhong:8500;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
server_name xxljob-bazhong.t-aaron.com;
|
||||
|
||||
# SSL证书配置
|
||||
ssl_certificate /etc/nginx/t-aaron.com.pem;
|
||||
ssl_certificate_key /etc/nginx/t-aaron.com.key;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
|
||||
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
ssl_prefer_server_ciphers on;
|
||||
location / {
|
||||
proxy_pass http://XXL_JOB_bazhong:8080;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ if docker ps -a | grep -q ${NGINX_NAME}; then
|
|||
fi
|
||||
|
||||
# 启动Nginx容器
|
||||
docker run -d \
|
||||
docker run --pull always -d \
|
||||
--name ${NGINX_NAME} \
|
||||
--network ${NETWORK} \
|
||||
-p ${NGINX_HTTP_PORT}:80 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue