summaryrefslogtreecommitdiffstats
path: root/adei/files/opt/configs
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-01 19:30:54 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-01 19:30:54 +0200
commit79c76eaef5039276bb3a8725ac8c9f05f89ef0de (patch)
tree1bde68d36ce44d75fafc6dfb41f5f6d2b555815f /adei/files/opt/configs
parentbc1b77dc912adfd040d432972e2d3256c9ea2065 (diff)
downloadadei-79c76eaef5039276bb3a8725ac8c9f05f89ef0de.tar.gz
adei-79c76eaef5039276bb3a8725ac8c9f05f89ef0de.tar.bz2
adei-79c76eaef5039276bb3a8725ac8c9f05f89ef0de.tar.xz
adei-79c76eaef5039276bb3a8725ac8c9f05f89ef0de.zip
Optimize Dockerfile
Diffstat (limited to 'adei/files/opt/configs')
-rw-r--r--adei/files/opt/configs/apache.conf41
-rw-r--r--adei/files/opt/configs/config.actual.php2
-rw-r--r--adei/files/opt/configs/config.override.php0
-rw-r--r--adei/files/opt/configs/passwd.admin1
-rw-r--r--adei/files/opt/configs/passwd.user1
5 files changed, 45 insertions, 0 deletions
diff --git a/adei/files/opt/configs/apache.conf b/adei/files/opt/configs/apache.conf
new file mode 100644
index 0000000..87e3c87
--- /dev/null
+++ b/adei/files/opt/configs/apache.conf
@@ -0,0 +1,41 @@
+<Location /adei/admin/>
+ AuthType Basic
+ AuthName "ADEI/Admin Authentication"
+ AuthBasicProvider file
+ AuthUserFile /adei/cfg/passwd.admin
+ <RequireAny>
+ Require valid-user
+ Require ip 127.0.0.1
+ Require ip ::1
+ </RequireAny>
+</Location>
+
+<Location /adei/services/control.php>
+ AuthType Basic
+ AuthName "ADEI/Control Authentication"
+ AuthBasicProvider file
+ AuthUserFile /adei/cfg/passwd.admin
+ <RequireAny>
+ Require valid-user
+ Require ip 127.0.0.1
+ Require ip ::1
+ </RequireAny>
+</Location>
+
+<Location /adei/>
+ SetEnvIf Request_URI "adei/probe\.php$" health_check
+ SetEnvIf Request_URI "adei/services/sched\.php" service
+
+ AuthType Basic
+ AuthName "ADEI Authentication"
+ AuthBasicProvider file
+ AuthUserFile /adei/cfg/passwd.user
+ <RequireAny>
+ Require all granted
+ Require valid-user
+ Require env health_check
+ Require env service
+ Require ip 127.0.0.1
+ Require ip ::1
+ </RequireAny>
+</Location>
diff --git a/adei/files/opt/configs/config.actual.php b/adei/files/opt/configs/config.actual.php
new file mode 100644
index 0000000..acb6c35
--- /dev/null
+++ b/adei/files/opt/configs/config.actual.php
@@ -0,0 +1,2 @@
+<?php
+?>
diff --git a/adei/files/opt/configs/config.override.php b/adei/files/opt/configs/config.override.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/adei/files/opt/configs/config.override.php
diff --git a/adei/files/opt/configs/passwd.admin b/adei/files/opt/configs/passwd.admin
new file mode 100644
index 0000000..1a7a4bb
--- /dev/null
+++ b/adei/files/opt/configs/passwd.admin
@@ -0,0 +1 @@
+adei:$apr1$CmdT4hVc$GIf7BaO/POJn8b5GgkR6K/
diff --git a/adei/files/opt/configs/passwd.user b/adei/files/opt/configs/passwd.user
new file mode 100644
index 0000000..1a7a4bb
--- /dev/null
+++ b/adei/files/opt/configs/passwd.user
@@ -0,0 +1 @@
+adei:$apr1$CmdT4hVc$GIf7BaO/POJn8b5GgkR6K/