38 lines
1.1 KiB
Nginx Configuration File
38 lines
1.1 KiB
Nginx Configuration File
log_format custom_format '$remote_addr - $remote_user [$time_local] '
|
|
'"$request" $status $body_bytes_sent '
|
|
'"$http_referer" "$http_user_agent" '
|
|
'$request_time $upstream_response_time '
|
|
'$host $uri $args';
|
|
|
|
access_log /var/log/nginx/access.log custom_format;
|
|
|
|
server {
|
|
listen 8111;
|
|
server_name _; # 匹配所有主机名
|
|
|
|
location / {
|
|
root /MicroCommunityWeb;
|
|
}
|
|
|
|
location /callComponent {
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
proxy_pass http://micro-community-boot:8008;
|
|
}
|
|
|
|
location /app {
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
proxy_pass http://micro-community-boot:8008;
|
|
}
|
|
location /aba-call-back {
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
proxy_pass http://micro-community-boot:8008;
|
|
}
|
|
|
|
location /ws {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_pass http://micro-community-boot:8008;
|
|
}
|
|
}
|