Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
koel/nginx.conf.example
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (30 sloc)
1.05 KB
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
server { | |
listen *:80; | |
server_name koel.dev; | |
root /var/www/koel/public; | |
index index.php; | |
gzip on; | |
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json; | |
gzip_comp_level 9; | |
send_timeout 3600; | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
location /media/ { | |
internal; | |
alias $upstream_http_x_media_root; | |
#access_log /var/log/nginx/koel.access.log; | |
#error_log /var/log/nginx/koel.error.log; | |
} | |
location ~ \.php$ { | |
try_files $uri $uri/ /index.php?$args; | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_intercept_errors on; | |
include fastcgi_params; | |
} | |
} |