BinaryONe commited on
Commit
d58e22b
·
1 Parent(s): 42d9b14

Nginx Changes-Over Alpine

Browse files
Files changed (1) hide show
  1. nginx.conf +17 -15
nginx.conf CHANGED
@@ -1,20 +1,22 @@
1
- server {
2
- listen 7860;
 
3
 
4
- proxy_buffering off;
5
- proxy_cache off;
6
- sendfile on;
7
- tcp_nopush on;
8
- tcp_nodelay on;
9
 
10
- location / {
11
- proxy_pass http://127.0.0.1:8080; # Important: Use port 8080 for AIOHTTP
12
- proxy_set_header Host $host;
13
- proxy_set_header X-Real-IP $remote_addr;
14
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15
- proxy_set_header Range $http_range;
16
- proxy_set_header If-Range $http_if_range;
17
 
18
- add_header Accept-Ranges bytes;
 
19
  }
20
  }
 
1
+ http { # The crucial http block
2
+ server {
3
+ listen 7860;
4
 
5
+ proxy_buffering off;
6
+ proxy_cache off;
7
+ sendfile on;
8
+ tcp_nopush on;
9
+ tcp_nodelay on;
10
 
11
+ location / {
12
+ proxy_pass http://127.0.0.1:8080;
13
+ proxy_set_header Host $host;
14
+ proxy_set_header X-Real-IP $remote_addr;
15
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16
+ proxy_set_header Range $http_range;
17
+ proxy_set_header If-Range $http_if_range;
18
 
19
+ add_header Accept-Ranges bytes;
20
+ }
21
  }
22
  }