Merge pull request #13 from djmattyg007/nginx_custom_config_support
Allow users to add custom http-level nginx config
This commit is contained in:
@@ -35,7 +35,8 @@ RUN apk -U add \
|
|||||||
&& mv vendor /privatebin \
|
&& mv vendor /privatebin \
|
||||||
&& sed -i "s#define('PATH', '');#define('PATH', '/privatebin/');#" index.php \
|
&& sed -i "s#define('PATH', '');#define('PATH', '/privatebin/');#" index.php \
|
||||||
&& apk del tar ca-certificates curl gnupg \
|
&& apk del tar ca-certificates curl gnupg \
|
||||||
&& rm -f /privatebin.tar.gz* *.md /var/cache/apk/*
|
&& rm -f /privatebin.tar.gz* *.md /var/cache/apk/* \
|
||||||
|
&& rm /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
COPY files/nginx.conf /etc/nginx/nginx.conf
|
COPY files/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY files/php-fpm.conf /etc/php7/php-fpm.conf
|
COPY files/php-fpm.conf /etc/php7/php-fpm.conf
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ http {
|
|||||||
font/opentype
|
font/opentype
|
||||||
image/svg+xml;
|
image/svg+xml;
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/*.conf;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
root /var/www;
|
root /var/www;
|
||||||
|
|||||||
Reference in New Issue
Block a user