HEX
Server: LiteSpeed
System: Linux CentOS-79-64-minimal 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: vishn3436 (5293)
PHP: 8.0.15
Disabled: NONE
Upload Files
File: //data/ownphotos/nginx.conf
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;
    }
}