Changed nginx config to generate random file uuid by default (#149)

* Changed nginx config to generate random file uuid by default

* Added nginx version note to setup readme
This commit is contained in:
David 2020-04-14 16:06:02 +02:00 committed by GitHub
parent 250bbdf9d8
commit e33ce33651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -11,6 +11,9 @@ that we are working with a Debian Buster Minimal system or similar.
You may want to fork this repository and add your ssh pubkey to
`authorized_keys` and optionally edit the `tmux` and `bash` configurations.
NOTE: nginx version 1.11.0 or higher is required.
If you use the install script below, the correct version should be installed.
0. SSH in a freshly installed Debian machine.
1. `apt-get update && apt-get install sudo`
1. `adduser user`

View File

@ -20,10 +20,9 @@ server {
client_body_timeout 5s;
client_header_timeout 5s;
# Enable the following line if you want to have auto uuid support. This
# means users are able to upload Skyfiles without having to provide a uuid
# themselves.
# rewrite ^/skynet/skyfile/?$ /skynet/skyfile/$request_id$1;
# Auto generate a uuid for each file. This means users are able to upload
# Skyfiles without having to provide a uuid
rewrite ^/skynet/skyfile/?$ /skynet/skyfile/$request_id$1;
# NOTE: make sure to enable any additional configuration you might need like gzip