Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx;
- worker_processes auto;
- error_log /var/log/nginx/error.log;
- pid /run/nginx.pid;
- # Load dynamic modules. See /usr/share/nginx/README.dynamic.
- include /usr/share/nginx/modules/*.conf;
- events {
- worker_connections 1024;
- }
- http {
- log_format main '$http_x_forwarded_for - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$remote_addr"';
- log_format stratum '$remote_addr [$time_local] $scheme $status $request_length '
- '$body_bytes_sent $upstream_addr $upstream_connect_time '
- '$upstream_header_time $upstream_response_time';
- access_log /var/log/nginx/access.log main;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- upstream api {
- server 149.56.26.200:4000;
- }
- upstream yiimp-api {
- server 149.56.26.200:8081;
- }
- server {
- listen 4000;
- location / {
- proxy_pass http://api;
- }
- location /yiimp/ {
- proxy_pass http://yiimp-api;
- }
- }
- }
- stream {
- log_format stratum 'Remote: $remote_addr Time: [$time_local] Proto:$protocol Status:$status Bytes Recv:$bytes_received '
- 'Bytes Sent: $bytes_sent $upstream_addr $upstream_connect_time '
- '$upstream_first_byte_time $upstream_session_time $session_time';
- access_log /var/log/nginx/stratum_access.log stratum;
- include /etc/nginx/conf.d/*.conf;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement