-
Notifications
You must be signed in to change notification settings - Fork 36
/
nginx-dev.conf
35 lines (28 loc) · 937 Bytes
/
nginx-dev.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
# the upstream component nginx needs to connect to
upstream ancfinder {
server ancfinder:8000; # for a web port socket (we'll use this first)
}
# configuration of the server
server {
# the port your site will be served on, default_server
# indicates that this server block
# is the block to use if no blocks match the server_name
listen 80 default_server;
keepalive_timeout 10m; #maybe adjust according to google analytics
# the domain name it will serve for
server_name localhost; # substitute your machine's IP address or FQDN
charset utf-8;
# max upload size
client_max_body_size 75M; # adjust to taste
# location /static/ {
# autoindex on;
# alias /ancfinder_static/;
# }
location /.well-known/acme-challenge {
allow all;
root /usr/share/nginx/html;
}
location / {
proxy_pass http://ancfinder;
}
}