forked from Hay1tsme/artemis
Merge pull request 'docker: add nginx in docker compose file' (#218) from zaphkito/artemis:nginx_docker into develop
Reviewed-on: Hay1tsme/artemis#218
This commit is contained in:
@ -6,6 +6,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./aime:/app/aime
|
- ./aime:/app/aime
|
||||||
- ./configs/config:/app/config
|
- ./configs/config:/app/config
|
||||||
|
- ./cert:/app/cert
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
CFG_DEV: 1
|
CFG_DEV: 1
|
||||||
@ -14,7 +15,8 @@ services:
|
|||||||
CFG_CORE_MEMCACHED_HOSTNAME: ma.memcached
|
CFG_CORE_MEMCACHED_HOSTNAME: ma.memcached
|
||||||
CFG_CORE_AIMEDB_KEY: <INSERT AIMEDB KEY HERE>
|
CFG_CORE_AIMEDB_KEY: <INSERT AIMEDB KEY HERE>
|
||||||
CFG_CHUNI_SERVER_LOGLEVEL: debug
|
CFG_CHUNI_SERVER_LOGLEVEL: debug
|
||||||
|
|
||||||
|
##Note: comment 80 and 8443 when you plan to use with nginx
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "8443:8443"
|
- "8443:8443"
|
||||||
@ -64,3 +66,18 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "9090:8080"
|
- "9090:8080"
|
||||||
|
|
||||||
|
##Note: uncomment to allow use nginx with artemis, don't forget to comment 80 and 8443 ports on artemis
|
||||||
|
#nginx:
|
||||||
|
# hostname: ma.nginx
|
||||||
|
# image: nginx:latest
|
||||||
|
# ports:
|
||||||
|
# - "80:80"
|
||||||
|
# - "443:443"
|
||||||
|
# - "8443:8443"
|
||||||
|
# volumes:
|
||||||
|
##Note: copy example_config/example_nginx.conf to configs/nginx folder, edit it and rename to nginx.conf
|
||||||
|
# - ./configs/nginx:/etc/nginx/conf.d
|
||||||
|
# - ./cert:/etc/nginx/cert
|
||||||
|
# - ./logs/nginx:/var/log/nginx
|
||||||
|
# depends_on:
|
||||||
|
# - app
|
@ -66,6 +66,52 @@ server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# WAHLAP Billing, they use 443 port
|
||||||
|
# comment this out if running billing standalone
|
||||||
|
# still not work for some reason, please set
|
||||||
|
# billing=127.0.0.1 in segatools.ini for now and looking for fix
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name bl.sys-all.cn;
|
||||||
|
|
||||||
|
ssl_certificate /path/to/cert/server.pem;
|
||||||
|
ssl_certificate_key /path/to/cert/server.key;
|
||||||
|
ssl_session_timeout 1d;
|
||||||
|
ssl_session_cache shared:MozSSL:10m;
|
||||||
|
ssl_session_tickets off;
|
||||||
|
|
||||||
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
||||||
|
ssl_ciphers "ALL:@SECLEVEL=0";
|
||||||
|
ssl_prefer_server_ciphers off;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_pass_request_headers on;
|
||||||
|
proxy_pass http://127.0.0.1:8080/;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name bl.sys-allnet.cn;
|
||||||
|
|
||||||
|
ssl_certificate /path/to/cert/server.pem;
|
||||||
|
ssl_certificate_key /path/to/cert/server.key;
|
||||||
|
ssl_session_timeout 1d;
|
||||||
|
ssl_session_cache shared:MozSSL:10m;
|
||||||
|
ssl_session_tickets off;
|
||||||
|
|
||||||
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
||||||
|
ssl_ciphers "ALL:@SECLEVEL=0";
|
||||||
|
ssl_prefer_server_ciphers off;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_pass_request_headers on;
|
||||||
|
proxy_pass http://127.0.0.1:8080/;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Frontend, set to redirect to HTTPS. Comment out if you don't intend to use the frontend
|
# Frontend, set to redirect to HTTPS. Comment out if you don't intend to use the frontend
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
Reference in New Issue
Block a user