Browse Source

split the config file in two

master
Nicolas Massé 8 years ago
parent
commit
6ca0e7d17c
  1. 3
      .s2i/bin/assemble
  2. 17
      nginx.conf
  3. 0
      nginx.d/sso-proxy.conf

3
.s2i/bin/assemble

@ -7,7 +7,8 @@ set -e
cd /tmp/src cd /tmp/src
echo "Install nginx configuration files..." echo "Install nginx configuration files..."
cp conf.d/sso-proxy.conf $NGINX_CONFIGURATION_PATH/ cp nginx.d/*.conf $NGINX_CONFIGURATION_PATH/
cp nginx.conf $APP_ROOT/etc/
echo "Creating empty dirs to hold serving certs and trusted CAs..." echo "Creating empty dirs to hold serving certs and trusted CAs..."
mkdir -p $APP_ROOT/etc/serving-cert/ $APP_ROOT/etc/ca-certs/ mkdir -p $APP_ROOT/etc/serving-cert/ $APP_ROOT/etc/ca-certs/

17
nginx.conf

@ -0,0 +1,17 @@
worker_processes 1;
env $LOG_LEVEL;
error_log /dev/stdout $LOG_LEVEL;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type text/plain;
sendfile on;
keepalive_timeout 65;
}
include nginx.d/*.conf;

0
conf.d/sso-proxy.conf → nginx.d/sso-proxy.conf

Loading…
Cancel
Save