-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
executable file
·37 lines (32 loc) · 1.01 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
error_log error.log;
pid nginx.pid;
worker_rlimit_nofile 8192;
events {
worker_connections 4096; ## Default: 1024
}
http {
index index.html index.htm index.php;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128; # this seems to be required for some vhosts
server { # simple reverse-proxy
listen 80;
server_name www-apim-connector;
access_log www-apim-connector.access.log main;
# pass requests for dynamic content to rails/turbogears/zope, et al
location / {
proxy_pass http://apim-demo-portal-server:8090;
}
location /v1 {
proxy_pass http://apim-connector:3000/v1;
}
location /api-explorer {
proxy_pass http://apim-connector:3000/api-explorer;
}
}
}