-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,53 @@ | ||
server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
|
||
client_max_body_size 125M; | ||
|
||
root /var/www; | ||
|
||
# Add index.php to the list if you are using PHP | ||
index index.html index.htm index.nginx-debian.html; | ||
|
||
server_name _; | ||
|
||
|
||
location /s/audio/ { | ||
# static mp3 files in audio dir | ||
sendfile on; | ||
sendfile_max_chunk 1m; | ||
tcp_nodelay on; | ||
keepalive_timeout 65; | ||
access_log /var/log/nginx/mp3access.log custom buffer=1k flush=1m; | ||
root /var/www/public; | ||
} | ||
|
||
location /s/ { | ||
# all other static file | ||
root /var/www/public; | ||
} | ||
|
||
location /archiv { | ||
# all other static file | ||
autoindex on; | ||
root /var/www; | ||
} | ||
|
||
location /media/ { | ||
# allow old style links for mp3s | ||
rewrite ^/media/(.*mp3) /api/files?name=$1 break; | ||
proxy_buffering off; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_pass http://localhost:3000; | ||
access_log /var/log/nginx/mp3access.log custom buffer=1k flush=1m; | ||
# access_log /var/log/nginx/mediaaccess.log; | ||
} | ||
|
||
|
||
# | ||
location / { | ||
proxy_buffering off; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_pass http://localhost:3000; | ||
} | ||
|
||
# deny access to .htaccess files, if Apache's document root | ||
# concurs with nginx's onenginx | ||
# | ||
#location ~ /\.ht { | ||
# deny all; | ||
#} | ||
} | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
|
||
client_max_body_size 200M; | ||
|
||
root /var/www; | ||
|
||
# Add index.php to the list if you are using PHP | ||
index index.html index.htm index.nginx-debian.html; | ||
|
||
server_name _; | ||
|
||
location /s/audio/ { | ||
# static mp3 files in audio dir | ||
sendfile on; | ||
sendfile_max_chunk 1m; | ||
tcp_nodelay on; | ||
keepalive_timeout 65; | ||
access_log /var/log/nginx/mp3access.log custom buffer=1k flush=1m; | ||
root /var/www/public; | ||
} | ||
|
||
location /s/ { | ||
# all other static file | ||
root /var/www/public; | ||
} | ||
|
||
location /archiv { | ||
# backup archive | ||
autoindex on; | ||
root /var/www; | ||
} | ||
|
||
location /media/ { | ||
# allow old style links from previous podcast tool for mp3s | ||
rewrite ^/media/(.*mp3) /api/files?name=$1 break; | ||
proxy_buffering off; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_pass http://localhost:3000; | ||
access_log /var/log/nginx/mp3access.log custom buffer=1k flush=1m; | ||
# access_log /var/log/nginx/mediaaccess.log; | ||
} | ||
|
||
location / { | ||
proxy_buffering off; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_pass http://localhost:3000; | ||
} | ||
} | ||
|