46 lines
1016 B
Nginx Configuration File
46 lines
1016 B
Nginx Configuration File
# ============================================================================
|
|
# OpenResty baseline configuration for macOS installations
|
|
# ============================================================================
|
|
|
|
user nobody;
|
|
worker_processes auto;
|
|
|
|
error_log logs/error.log info;
|
|
pid logs/nginx.pid;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
upstream next_dashboard {
|
|
server 127.0.0.1:3001;
|
|
keepalive 8;
|
|
}
|
|
|
|
upstream account_service {
|
|
server 127.0.0.1:8080;
|
|
keepalive 8;
|
|
}
|
|
|
|
upstream api_service {
|
|
server 127.0.0.1:8090;
|
|
keepalive 8;
|
|
}
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
|
|
server_tokens off;
|
|
|
|
gzip on;
|
|
gzip_types text/plain text/css text/javascript application/javascript application/json application/xml application/xml+rss image/svg+xml;
|
|
|
|
include conf.d/*.conf;
|
|
}
|