From e33ce33651799df79c37b605fd7aadd26fc5afb8 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 14 Apr 2020 16:06:02 +0200 Subject: [PATCH] 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 --- setup-scripts/README.md | 3 +++ setup-scripts/skynet-nginx.conf | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/setup-scripts/README.md b/setup-scripts/README.md index 39e1ad88..0655c2ca 100644 --- a/setup-scripts/README.md +++ b/setup-scripts/README.md @@ -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` diff --git a/setup-scripts/skynet-nginx.conf b/setup-scripts/skynet-nginx.conf index 7d085f48..bf4b9bc3 100644 --- a/setup-scripts/skynet-nginx.conf +++ b/setup-scripts/skynet-nginx.conf @@ -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