-
Notifications
You must be signed in to change notification settings - Fork 36
/
nginx.conf
33 lines (27 loc) · 943 Bytes
/
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
# the upstream component nginx needs to connect to
upstream ancfinder {
server ancfinder:8080; # 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 /.well-known/acme-challenge {
allow all;
root /usr/share/nginx/html;
}
location / {
uwsgi_pass ancfinder;
uwsgi_read_timeout 300;
index index.html index.htm;
include /home/docker/code/uwsgi_params;
}
}