willy.club/docker/nginx.conf

43 lines
1.1 KiB
Nginx Configuration File
Raw Normal View History

2022-12-29 01:53:33 +00:00
user www;
worker_processes 1;
2022-12-29 03:49:24 +00:00
error_log /var/log/nginx/error.log warn;
2022-12-29 01:53:33 +00:00
pid /var/run/nginx/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
2022-12-29 02:29:47 +00:00
access_log off;
2022-12-29 01:53:33 +00:00
keepalive_timeout 3000;
2022-12-29 03:49:24 +00:00
server_tokens off;
2022-12-29 01:53:33 +00:00
server {
listen 8080;
2022-12-29 02:29:47 +00:00
root /www/public;
2022-12-29 03:49:24 +00:00
index index.php;
2022-12-29 01:53:33 +00:00
server_name localhost;
2022-12-29 03:49:24 +00:00
error_page 404 /index.php;
2023-01-22 19:51:48 +00:00
location /radio/hbr1/trance.ogg {
2023-01-29 12:35:00 +00:00
proxy_pass http://radio.hbr1.com/stream/trance.ogg;
proxy_buffering off;
2023-01-22 19:51:48 +00:00
}
2022-12-29 03:05:39 +00:00
location / {
try_files $uri $uri/ /index.php?$query_string;
}
2022-12-29 03:49:24 +00:00
2022-12-29 01:53:33 +00:00
location ~ \.php$ {
2023-01-29 12:35:00 +00:00
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
2022-12-29 01:53:33 +00:00
}
}
2023-01-02 12:11:03 +00:00
}