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:
parent
250bbdf9d8
commit
e33ce33651
|
@ -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
|
You may want to fork this repository and add your ssh pubkey to
|
||||||
`authorized_keys` and optionally edit the `tmux` and `bash` configurations.
|
`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.
|
0. SSH in a freshly installed Debian machine.
|
||||||
1. `apt-get update && apt-get install sudo`
|
1. `apt-get update && apt-get install sudo`
|
||||||
1. `adduser user`
|
1. `adduser user`
|
||||||
|
|
|
@ -20,10 +20,9 @@ server {
|
||||||
client_body_timeout 5s;
|
client_body_timeout 5s;
|
||||||
client_header_timeout 5s;
|
client_header_timeout 5s;
|
||||||
|
|
||||||
# Enable the following line if you want to have auto uuid support. This
|
# Auto generate a uuid for each file. This means users are able to upload
|
||||||
# means users are able to upload Skyfiles without having to provide a uuid
|
# Skyfiles without having to provide a uuid
|
||||||
# themselves.
|
rewrite ^/skynet/skyfile/?$ /skynet/skyfile/$request_id$1;
|
||||||
# rewrite ^/skynet/skyfile/?$ /skynet/skyfile/$request_id$1;
|
|
||||||
|
|
||||||
# NOTE: make sure to enable any additional configuration you might need like gzip
|
# NOTE: make sure to enable any additional configuration you might need like gzip
|
||||||
|
|
||||||
|
|
Reference in New Issue