forked from hooram/ownphotos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
36 lines (31 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
server {
# the port your site will be served on
listen 80;
# the domain name it will serve for
server_name 127.0.0.1; # substitute by your FQDN and machine's IP address
charset utf-8;
#Max upload size
client_max_body_size 75M; # adjust to taste
# Django media
location /protected_media {
internal;
alias /code/protected_media; # your Django project's media files
}
# Original Photos
location /original {
internal;
alias /data; # your Django project's media files
}
# Nextcloud Original Photos
location /nextcloud_original {
internal;
alias /code/nextcloud_media; # your Django project's media files
}
# Finally, send all non-media requests to the Django server.
location / {
proxy_pass http://127.0.0.1:8001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}