new
This commit is contained in:
33
README.md
Normal file
33
README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# MINI-FLEES
|
||||
|
||||
A mini file sharing website.
|
||||
|
||||
|
||||
# installation
|
||||
|
||||
- `bash create_config.sh`
|
||||
- `docker-compose up --build`
|
||||
|
||||
# configuration
|
||||
|
||||
- configure service with data/config.json
|
||||
- Change your `app_secret_key` !!
|
||||
- Change your `access_token` !!
|
||||
- Change your `public_url`
|
||||
- Change your `timezone`
|
||||
- `uid` = user id for new files
|
||||
- `workers` = parallel processes (i.e. one upload reserves a process)
|
||||
- `timeout` = timeout for processes, single upload might take a long time!
|
||||
- configure bind host and port in .env
|
||||
- proxy with nginx, match bind port, body size and timeout to your needs:
|
||||
```
|
||||
location /flees/ {
|
||||
proxy_pass http://localhost:8136/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Script-Name /flees;
|
||||
client_max_body_size 8G;
|
||||
client_body_timeout 3600s;
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user