Compare commits
2 Commits
205d62a634
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c8e42f1ef | |||
| 6090d8f596 |
39
README.md
39
README.md
@@ -60,6 +60,41 @@ $ sudo docker compose up --build -d
|
|||||||
|
|
||||||
Set up nginx / a reverse proxy and point it to the web app.
|
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
|
### Config Changes
|
||||||
|
|
||||||
@@ -86,7 +121,7 @@ An optional Telegram bot can send you notifications when uploads complete. This
|
|||||||
|
|
||||||
To create a bot, message @BotFather on Telegram. Come up with a name and username. Botfather will then send you an API key you can paste into the `.env` config directly.
|
To create a bot, message @BotFather on Telegram. Come up with a name and username. Botfather will then send you an API key you can paste into the `.env` config directly.
|
||||||
|
|
||||||
Next you'll need to find your own Telegram user ID. You can message @userinfobot and it will reply with your ID. Be ware of impersonator bots (they have the name "userinfobot" but a different username).
|
Next you'll need to find your own Telegram user ID. You can message @userinfobot and it will reply with your ID. Beware of impersonator bots (they have the name "userinfobot" but a different username).
|
||||||
|
|
||||||
Then message the bot you just created "/start" so that it's able to interact with you.
|
Then message the bot you just created "/start" so that it's able to interact with you.
|
||||||
|
|
||||||
@@ -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.
|
- 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 per‑item progress via WebSocket.
|
- Intended to bypass upstream proxy limits (e.g., 100MB) while preserving duplicate checks, EXIF timestamps, album add, and per‑item progress via WebSocket.
|
||||||
|
|
||||||
## Developtment
|
## Development
|
||||||
|
|
||||||
### Architecture
|
### Architecture
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user