※ 해당 문서는 STATIC 4.5.2 이상부터 호환되는 가이드입니다.
이 가이드는 다중 IP를 가진 서버로 모든 IP로 들어갈 수 있게 하는 설정 가이드 입니다.
Proxy 설정
STATIC 설치
STATIC Luancher Sehll 에서 web-ui 중지
> stop web-ui
%static_home%/workspace/web-ui/conf/nginx.conf 을 열어 수정
...
http {
client_max_body_size 0;
include mime.types;
default_type application/octet-stream;
#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 logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
include services;
server {
listen 80;
server_name 서버 IP(ex: 111.222.333.444); >>> **이 부분**
#charset koi8-r;
#access_log logs/host.access.log main;
}
...
%static_home%/workspace/web-ui/conf/services 을 열어 수정
server {
listen 18010;
server_name localhost;
location / {
proxy_pass <http://localhost:18000>;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
# 추가되는 부분
server {
listen 80;
server_name 또 다른 IP;
location / {
proxy_pass <http://STATIC> 서버 IP:80;
****proxy_read_timeout 3600;
proxy_send_timeout 3600;
proxy_connect_timeout 3600;
proxy_buffers 64 16k; # default 8 4k
}
}
STATIC Luancher Sehll 에서 web-ui 시작
> start web-ui