Compare commits

...

2 Commits

Author SHA1 Message Date
6c8e42f1ef README typos 2026-01-22 16:27:59 -07:00
6090d8f596 Add nginx config 2026-01-22 16:23:14 -07:00

View File

@@ -60,6 +60,41 @@ $ sudo docker compose up --build -d
Set up nginx / a reverse proxy and point it to the web app.
Make sure it allows WebSocket connections through, for example:
```
server {
root /var/www/html;
index index.html index.htm;
server_name upload.example.com;
listen 80;
client_max_body_size 100M;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
}
}
```
Then restart nginx and set up HTTPS:
```
$ sudo service nginx restart
$ sudo certbot --nginx
```
### Config Changes
@@ -97,7 +132,7 @@ Then message the bot you just created "/start" so that it's able to interact wit
- Configure chunk size with `CHUNK_SIZE_MB` (default: `50`). The client only uses chunked mode for files larger than this.
- Intended to bypass upstream proxy limits (e.g., 100MB) while preserving duplicate checks, EXIF timestamps, album add, and peritem progress via WebSocket.
## Developtment
## Development
### Architecture