willy.club/docker/nginx.conf
2023-02-12 15:54:15 +01:00

43 lines
1.1 KiB
Nginx Configuration File

user www;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
access_log off;
keepalive_timeout 3000;
server_tokens off;
server {
listen 8080;
root /www/public;
index index.php;
server_name localhost;
error_page 404 /index.php;
location /radio/hbr1/trance.ogg {
proxy_pass http://radio.hbr1.com/stream/trance.ogg;
proxy_buffering off;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri = /;
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}
}
}