diff --git a/README.md b/README.md index 8cb2e5d..3814be3 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,13 @@ a very small file sharing website -- configure with data/shares.json -- configure with data/config.json +- configure shares with data/shares.json +- generate shares with utils/create-share.py +- configure service with data/config.json - 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! -- generate shares with utils/create-share.py +- configure bind host and port in .env - proxy with nginx: ``` location /flees/ { diff --git a/docker-compose.yaml b/docker-compose.yaml index 28159da..a42aa1f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,10 +6,10 @@ services: build: context: code ports: - - 127.0.0.1:8136:80 + - "${FLEES_EXPOSE}:80" volumes: - ./data/:/code/data/ - # restart: always + restart: always diff --git a/env.example b/env.example new file mode 100644 index 0000000..71e64c3 --- /dev/null +++ b/env.example @@ -0,0 +1 @@ +FLEES_EXPOSE=127.0.0.1:8136