aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <clyhtsuriva@gmail.com>2020-03-01 21:18:29 +0100
committerroot <clyhtsuriva@gmail.com>2020-03-01 21:18:29 +0100
commit30e5e0279463f67d94b1c0f55f2fda97bcf9b1df (patch)
treed347edbdc3a2a57b4be76c93c65841b8cd746723
parent32dfd7da66bce3d39812cecf5aba5ef6f8c97c0b (diff)
password protection
-rw-r--r--web/.htpasswd1
l---------web/apache21
-rw-r--r--web/website/.htaccess4
-rw-r--r--web/website/fonctions.py (renamed from web/fonctions.py)0
-rw-r--r--web/website/init-bd.sql (renamed from web/init-bd.sql)0
-rw-r--r--web/website/style.css (renamed from web/style.css)0
-rw-r--r--web/website/test.html (renamed from web/test.html)0
-rw-r--r--web/website/test.py (renamed from web/test.py)0
8 files changed, 6 insertions, 0 deletions
diff --git a/web/.htpasswd b/web/.htpasswd
new file mode 100644
index 0000000..da7e048
--- /dev/null
+++ b/web/.htpasswd
@@ -0,0 +1 @@
+admin:$2y$10$qf/Q1lBSvBq3ycgPmFgUE.1LiVrqRVpKE1VLSBKtkwV6G8aC1v5di
diff --git a/web/apache2 b/web/apache2
new file mode 120000
index 0000000..8cb6183
--- /dev/null
+++ b/web/apache2
@@ -0,0 +1 @@
+/etc/apache2 \ No newline at end of file
diff --git a/web/website/.htaccess b/web/website/.htaccess
new file mode 100644
index 0000000..825c08d
--- /dev/null
+++ b/web/website/.htaccess
@@ -0,0 +1,4 @@
+AuthType Basic
+AuthName "restricted area"
+AuthUserFile /var/www/html/ATS-Project/web/.htpasswd
+require valid-user
diff --git a/web/fonctions.py b/web/website/fonctions.py
index 1b18cc7..1b18cc7 100644
--- a/web/fonctions.py
+++ b/web/website/fonctions.py
diff --git a/web/init-bd.sql b/web/website/init-bd.sql
index 6cd080f..6cd080f 100644
--- a/web/init-bd.sql
+++ b/web/website/init-bd.sql
diff --git a/web/style.css b/web/website/style.css
index 69f4ad1..69f4ad1 100644
--- a/web/style.css
+++ b/web/website/style.css
diff --git a/web/test.html b/web/website/test.html
index b789672..b789672 100644
--- a/web/test.html
+++ b/web/website/test.html
diff --git a/web/test.py b/web/website/test.py
index 4da1d58..4da1d58 100644
--- a/web/test.py
+++ b/web/website/test.py