v0.0.4
This commit is contained in:
parent
fd270a9f95
commit
861aade5e9
@ -3,6 +3,7 @@ LoadModule cgi_module modules/mod_cgi.so
|
|||||||
|
|
||||||
SetEnv GIT_PROJECT_ROOT /usr/local/apache2/htdocs
|
SetEnv GIT_PROJECT_ROOT /usr/local/apache2/htdocs
|
||||||
SetEnv GIT_HTTP_EXPORT_ALL
|
SetEnv GIT_HTTP_EXPORT_ALL
|
||||||
|
|
||||||
ScriptAliasMatch \
|
ScriptAliasMatch \
|
||||||
"(?x)^/(.*/(HEAD | \
|
"(?x)^/(.*/(HEAD | \
|
||||||
info/refs | \
|
info/refs | \
|
||||||
|
7
files/httpd-ssi.conf
Normal file
7
files/httpd-ssi.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
LoadModule include_module modules/mod_include.so
|
||||||
|
|
||||||
|
AddOutputFilter INCLUDES .shtml
|
||||||
|
|
||||||
|
<Directory "/usr/local/apache2/htdocs">
|
||||||
|
Options +Includes
|
||||||
|
</Directory>
|
@ -1688,7 +1688,7 @@ text/csv csv
|
|||||||
# text/example
|
# text/example
|
||||||
# text/fwdred
|
# text/fwdred
|
||||||
# text/grammar-ref-list
|
# text/grammar-ref-list
|
||||||
text/html html htm
|
text/html html htm shtml
|
||||||
text/javascript js mjs
|
text/javascript js mjs
|
||||||
# text/jcr-cnd
|
# text/jcr-cnd
|
||||||
text/markdown md
|
text/markdown md
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
httpd_server_name: "www.eom.dev"
|
httpd_server_name: "www.eom.dev"
|
||||||
httpd_conf_extra:
|
httpd_conf_extra:
|
||||||
- httpd-auth.conf
|
- httpd-auth.conf
|
||||||
|
- httpd-ssi.conf
|
||||||
k8s:
|
k8s:
|
||||||
state: present
|
state: present
|
||||||
api_version: v1
|
api_version: v1
|
||||||
@ -15,6 +16,7 @@
|
|||||||
data:
|
data:
|
||||||
httpd.conf: "{{ lookup('template', 'httpd.conf.j2') }}"
|
httpd.conf: "{{ lookup('template', 'httpd.conf.j2') }}"
|
||||||
httpd-auth.conf: "{{ lookup('template', 'httpd-auth.conf.j2') }}"
|
httpd-auth.conf: "{{ lookup('template', 'httpd-auth.conf.j2') }}"
|
||||||
|
httpd-ssi.conf: "{{ lookup('file', 'httpd-ssi.conf') }}"
|
||||||
mime.types: "{{ lookup('file', 'mime.types') }}"
|
mime.types: "{{ lookup('file', 'mime.types') }}"
|
||||||
|
|
||||||
- name: Create a deployment
|
- name: Create a deployment
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
|
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
|
||||||
LoadModule ldap_module modules/mod_ldap.so
|
LoadModule ldap_module modules/mod_ldap.so
|
||||||
|
|
||||||
|
# Base
|
||||||
<LocationMatch "^/">
|
<LocationMatch "^/">
|
||||||
AuthType basic
|
AuthType basic
|
||||||
AuthName OpenLDAP
|
AuthName OpenLDAP
|
||||||
@ -14,6 +15,7 @@ LoadModule ldap_module modules/mod_ldap.so
|
|||||||
</RequireAny>
|
</RequireAny>
|
||||||
</LocationMatch>
|
</LocationMatch>
|
||||||
|
|
||||||
|
# Users
|
||||||
<LocationMatch "^/eric">
|
<LocationMatch "^/eric">
|
||||||
AuthType basic
|
AuthType basic
|
||||||
AuthName OpenLDAP
|
AuthName OpenLDAP
|
||||||
@ -23,3 +25,14 @@ LoadModule ldap_module modules/mod_ldap.so
|
|||||||
AuthLDAPURL "ldap://openldap/dc=eom,dc=dev?uid??(uid=eric)"
|
AuthLDAPURL "ldap://openldap/dc=eom,dc=dev?uid??(uid=eric)"
|
||||||
Require valid-user
|
Require valid-user
|
||||||
</LocationMatch>
|
</LocationMatch>
|
||||||
|
|
||||||
|
# Git
|
||||||
|
<LocationMatch "^/.*/git-receive-pack$">
|
||||||
|
AuthType basic
|
||||||
|
AuthName OpenLDAP
|
||||||
|
AuthBasicProvider ldap
|
||||||
|
AuthLDAPBindDN "cn=admin,dc=eom,dc=dev"
|
||||||
|
AuthLDAPBindPassword "{{ ldap_admin_password }}"
|
||||||
|
AuthLDAPURL "ldap://openldap/dc=eom,dc=dev?uid"
|
||||||
|
Require valid-user
|
||||||
|
</LocationMatch>
|
||||||
|
Loading…
Reference in New Issue
Block a user