better domain+location handling

This commit is contained in:
Mauro Torrez
2019-09-06 00:44:04 -03:00
parent 8bb5ff1cca
commit 0022ab678c
7 changed files with 61 additions and 4 deletions

View File

@@ -12,9 +12,9 @@ RUN apt-get update \
ADD nginx.conf /etc/nginx/
ADD dhparams.pem /etc/nginx/ssl/
ADD default_ssl.conf /etc/nginx/conf.d/
ADD default.conf /etc/nginx/conf.d/
VOLUME /etc/nginx/ssl/
VOLUME /etc/nginx/conf.d/
VOLUME /etc/nginx/locations/
VOLUME /etc/nginx/location/
VOLUME /usr/share/nginx/html/

View File

@@ -12,5 +12,5 @@ server {
server_name _;
root /usr/share/nginx/html;
include locations/*.conf;
include location/default/*.conf;
}