Browse Source

Some fix for nginx config and todo

Dashie der otter 2 months ago
parent
commit
e95aadcabc
2 changed files with 15 additions and 5 deletions
  1. 3
    0
      TODO.org
  2. 12
    5
      docs/reel2bits.nginx

+ 3
- 0
TODO.org View File

@@ -25,6 +25,9 @@
25 25
 Only show to public processed songs
26 26
 Also do not show player until processing is done, and waveform done
27 27
 
28
+X-Accel-Redirect have not been implemented again
29
+    not sure it would be useful ?
30
+
28 31
 If waveform error, do not publicize the song and show banner error for uploader
29 32
 
30 33
 Check for sentry in:

+ 12
- 5
docs/reel2bits.nginx View File

@@ -7,6 +7,8 @@ server {
7 7
         access_log /var/log/nginx/reel2bits.access.log;
8 8
         error_log /var/log/nginx/reel2bits.error.log error;
9 9
 
10
+        client_max_body_size 1G;
11
+
10 12
         location / {
11 13
             try_files $request_uri @proxy;
12 14
         }
@@ -19,9 +21,14 @@ server {
19 21
             proxy_pass http://127.0.0.1:8000;
20 22
         }
21 23
 
22
-        location /_protected/media {
23
-            internal;
24
-            # Same path as UPLOADS_DEFAULT_DEST in config.py, but with a final /
25
-            alias /home/reel2bits/uploads/;
24
+        location /uploads/sounds {
25
+                # Same path as UPLOADS_DEFAULT_DEST in config.py but with /sounds
26
+                alias /home/reel2bits/uploads/sounds;
27
+        }
28
+
29
+        location /uploads/waveforms {
30
+                # Same path as UPLOADS_DEFAULT_DEST in config.py but with /waveforms
31
+                alias /home/reel2bits/uploads/waveforms;
26 32
         }
27
-}
33
+
34
+}

Loading…
Cancel
Save