From d202e831894fe404512b97a4b6466a2649badaf8 Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Thu, 16 Jun 2022 12:52:55 +0100 Subject: [PATCH] Updated server files --- database/initdb.d/init-mongo.sh | 14 -------------- nginx/conf.d/ref-test-app.conf | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 database/initdb.d/init-mongo.sh diff --git a/database/initdb.d/init-mongo.sh b/database/initdb.d/init-mongo.sh deleted file mode 100644 index 69ee616..0000000 --- a/database/initdb.d/init-mongo.sh +++ /dev/null @@ -1,14 +0,0 @@ -set -e -mongo=( mongo --host 127.0.0.1 --port 27017 --quiet ) - -if [ "$MONGO_INITDB_ROOT_USERNAME" ] && [ "$MONGO_INITDB_ROOT_PASSWORD" ] && [ "$MONGO_INITDB_USERNAME" ] && [ "$MONGO_INITDB_PASSWORD" ]; then -rootAuthDatabase='admin' - -"${mongo[@]}" "$rootAuthDatabase" <<-EOJS - db.createUser({ - user: $(_js_escape "$MONGO_INITDB_USERNAME"), - pwd: $(_js_escape "$MONGO_INITDB_PASSWORD"), - roles: [ { role: 'readWrite', db: $(_js_escape "$MONGO_INITDB_DATABASE") } ] - }) -EOJS -fi \ No newline at end of file diff --git a/nginx/conf.d/ref-test-app.conf b/nginx/conf.d/ref-test-app.conf index c2ced67..9fde8b2 100644 --- a/nginx/conf.d/ref-test-app.conf +++ b/nginx/conf.d/ref-test-app.conf @@ -19,7 +19,7 @@ server { include /etc/nginx/ssl.conf; include /etc/nginx/certbot-challenge.conf; - location ^~ /static/ { + location ^~ /quiz/static/ { include /etc/nginx/mime.types; alias /usr/share/nginx/html/quiz/static/; }