You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
user nginx;
|
|
worker_processes auto;
|
|
error_log /var/log/nginx/error.log notice;
|
|
pid /var/run/nginx.pid;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
stream {
|
|
server {
|
|
listen 56380;
|
|
proxy_connect_timeout 5s;
|
|
proxy_timeout 60s;
|
|
proxy_pass hy-v3-redis:6379;
|
|
}
|
|
|
|
server {
|
|
listen 19999;
|
|
proxy_connect_timeout 5s;
|
|
proxy_timeout 60s;
|
|
proxy_pass hy-v3-openapi:9999;
|
|
}
|
|
|
|
server {
|
|
listen 18081;
|
|
proxy_connect_timeout 5s;
|
|
proxy_timeout 60s;
|
|
proxy_pass hy-v3-geoserver:8080;
|
|
}
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
access_log /var/log/nginx/access.log main;
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
proxy_cache_path /var/cache/nginx/v3-tiles levels=1:2 keys_zone=v3_tiles:20m
|
|
max_size=2g inactive=7d use_temp_path=off;
|
|
include /etc/nginx/conf.d/*.conf;
|
|
}
|
|
|