Example nginx configuration (unused)

master
Vitaliy Filippov 2017-01-10 19:09:18 +03:00
parent b54cfea768
commit 7561689e19
5 changed files with 28 additions and 37 deletions

View File

@ -14,6 +14,9 @@ with 'bugzilla' password and configure your Bugzilla.
Please note that you should probably use SMTP to send email from inside of a
Docker container.
You can take example nginx configuration for proxying Bugzilla4Intranet from
this repo: etc/nginx/sites-available/bugzilla4intranet
# Docker cheatsheet
Some basic commands to work with the resulting container:

View File

@ -0,0 +1,24 @@
# Example configuration for proxying Bugzilla4Intranet
server {
listen 80 default;
server_name bugzilla4intranet.local;
root /home/bugzilla;
include global_params;
location ~* ^/*(.*\.(js|css|jpg|jpeg|svg|png|gif|swf|jar|ico|woff|ttf)$) {
alias /home/bugzilla/$1;
add_header Cache-Control must-revalidate;
}
location / {
proxy_pass http://127.0.0.1:8157;
include proxy_params;
}
location /buglist.cgi {
alias /home/bugzilla/buglist.cgi;
proxy_pass http://127.0.0.1:8157;
include proxy_params;
proxy_buffering off;
}
}

View File

@ -1,36 +0,0 @@
server {
listen 80 default;
server_name wiki4intranet.local;
root /home/wiki4intranet/www;
location ~ /\.svn\/|\.bzr\/|\.hg\/|\.git\// {
deny all;
}
# pass to php7.0-fpm
location / {
index index.php;
try_files $uri @index;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
location @index {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
location /images {
allow all;
}
location ~* ^/.*/.*\.(jpg|jpeg|gif|png|html|htm|ico)$ {
allow all;
}
}

View File

@ -0,0 +1 @@
../sites-available/bugzilla4intranet

View File

@ -1 +0,0 @@
../sites-available/wiki4intranet