summaryrefslogtreecommitdiff
path: root/roles/web/templates/httpd.conf.j2
diff options
context:
space:
mode:
authorrepliqa <sarzilhossain@proton.me>2025-07-23 14:06:15 +0600
committerrepliqa <sarzilhossain@proton.me>2025-07-23 14:06:15 +0600
commit69acb7a82a68eeb439e55b994281056df52c81b1 (patch)
tree7c6a53694e11511a3014470c213255a503f9c95e /roles/web/templates/httpd.conf.j2
v0.0.1alphaHEADmain
Diffstat (limited to 'roles/web/templates/httpd.conf.j2')
-rw-r--r--roles/web/templates/httpd.conf.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/web/templates/httpd.conf.j2 b/roles/web/templates/httpd.conf.j2
new file mode 100644
index 00000000..ab26722c
--- /dev/null
+++ b/roles/web/templates/httpd.conf.j2
@@ -0,0 +1,19 @@
+server "default" {
+ listen on * port 80
+ location "/" {
+ block drop
+ }
+ location "/images/*" {
+ root "/reactance/images"
+ request strip 1
+ }
+
+{% for uname in user_pass_dict.keys() %}
+ location "/{{ uname }}/*" {
+ root "/reactance/{{ uname }}"
+ request strip 1
+ directory auto index
+ authenticate with "/reactance/{{ uname }}/.htpasswd"
+ }
+{% endfor %}
+}