default index templates
This commit is contained in:
25
Dockerfile
25
Dockerfile
@@ -2,7 +2,7 @@ FROM debian:buster-slim
|
|||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
apache2 \
|
apache2 markdown\
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV APACHE_RUN_USER www-data
|
ENV APACHE_RUN_USER www-data
|
||||||
@@ -22,16 +22,27 @@ RUN a2enmod proxy && \
|
|||||||
a2enmod proxy_balancer && \
|
a2enmod proxy_balancer && \
|
||||||
a2enmod proxy_connect && \
|
a2enmod proxy_connect && \
|
||||||
a2enmod proxy_html && \
|
a2enmod proxy_html && \
|
||||||
a2enmod ldap
|
a2enmod ldap && \
|
||||||
|
a2enmod authnz_ldap
|
||||||
|
|
||||||
|
RUN rm /etc/apache2/sites-enabled/*
|
||||||
|
COPY apache2.conf /etc/apache2/apache2.conf
|
||||||
|
COPY conf-enabled/*.conf /etc/apache2/conf-enabled/
|
||||||
|
COPY cfg /etc/apache2/cfg
|
||||||
|
COPY sites /etc/apache2/sites
|
||||||
|
|
||||||
|
|
||||||
COPY config_files/apache2.conf /etc/apache2/apache2.conf
|
WORKDIR /var/www/html
|
||||||
COPY config_files/conf-enabled/*.conf /etc/apache2/conf-enabled/
|
COPY README.md .
|
||||||
COPY config_files/confs /etc/apache2/
|
COPY html/* .
|
||||||
COPY config_files/sites /etc/apache2/
|
|
||||||
|
|
||||||
|
|
||||||
|
RUN cat template.html | \
|
||||||
|
sed -r "/\[README\]/ e markdown README.md" | \
|
||||||
|
sed "s/\[README\]//g" \
|
||||||
|
> index.html
|
||||||
|
|
||||||
|
WORKDIR /etc/apache2
|
||||||
|
RUN apachectl configtest
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ SSH Daemon config
|
|||||||

|

|
||||||
|
|
||||||
Apache Module aktivieren
|
Apache Module aktivieren
|
||||||
|
|
||||||
a2enmod mod_proxy
|
a2enmod mod_proxy
|
||||||
a2enmod xml2enc
|
a2enmod xml2enc
|
||||||
a2enmod proxy
|
a2enmod proxy
|
||||||
|
|||||||
@@ -226,5 +226,5 @@ IncludeOptional sites-enabled/*.conf
|
|||||||
|
|
||||||
IncludeOptional confs/*.conf
|
IncludeOptional confs/*.conf
|
||||||
Include sites/*.conf
|
Include sites/*.conf
|
||||||
Include stites/*/*.conf
|
Include sites/*/*.conf
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
AuthLDAPBindDN "OU=user,DC=fet,DC=htu,DC=tuwien,DC=ac,DC=at"
|
AuthLDAPBindDN "OU=user,DC=fet,DC=htu,DC=tuwien,DC=ac,DC=at"
|
||||||
AuthLDAPBindPassword ""
|
#AuthLDAPBindPassword ''
|
||||||
AuthLDAPURL "ldap://juri:389/ou=user,dc=fet,dc=htu,dc=tuwien,dc=ac,dc=at?uid?sub?(objectClass=person);"
|
AuthLDAPURL "ldap://juri:389/ou=user,dc=fet,dc=htu,dc=tuwien,dc=ac,dc=at?uid?sub?(objectClass=person);"
|
||||||
AuthUserFile /dev/null
|
AuthUserFile /dev/null
|
||||||
|
AuthType Basic
|
||||||
|
AuthName "FET"
|
||||||
|
AuthBasicProvider ldap
|
||||||
|
require valid-user
|
||||||
@@ -76,3 +76,9 @@ Header set X-Frame-Options: "sameorigin"
|
|||||||
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
||||||
|
|
||||||
|
Header set Access-Control-Allow-Origin "*"
|
||||||
|
|
||||||
|
Header set Timing-Allow-Origin: "*"
|
||||||
|
|
||||||
|
Header set Content-Security-Policy "script-src 'self'; object-src 'self'
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
<VirtualHost fet.at:80>
|
|
||||||
<VirtualHost *:80>
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
<h1>Galileo Reverse Proxy</h1>
|
|
||||||
|
|
||||||
<p>galileo ist ein neuer Reverse Proxy basierend auf Apache
|
|
||||||
<img src="Galileo_constellation_pillars.jpg" alt="Galileo" title="" /></p>
|
|
||||||
|
|
||||||
<h2>LXC Container installiert</h2>
|
|
||||||
|
|
||||||
<p>Wir haben einen LXC Container installiert und sshd installiert.
|
|
||||||
!<a href=""></a></p>
|
|
||||||
|
|
||||||
<pre><code>apt-get install sshd rsync apache2
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p>SSH Daemon config
|
|
||||||
<img src="sshd_config" alt="ssh_config" title="" /></p>
|
|
||||||
|
|
||||||
<p>Apache Module aktivieren
|
|
||||||
a2enmod mod<em>proxy
|
|
||||||
a2enmod xml2enc
|
|
||||||
a2enmod proxy
|
|
||||||
a2enmod proxy</em>http
|
|
||||||
a2enmod proxy<em>ajp
|
|
||||||
a2enmod rewrite
|
|
||||||
a2enmod deflate
|
|
||||||
a2enmod headers
|
|
||||||
a2enmod proxy</em>balancer
|
|
||||||
a2enmod proxy<em>connect
|
|
||||||
a2enmod proxy</em>html
|
|
||||||
a2enmod ldap</p>
|
|
||||||
|
|
||||||
<p>Sammlung Security Config:
|
|
||||||
https://github.com/jnbt/docker-httpd/blob/master/server-configs.conf</p>
|
|
||||||
|
|
||||||
<p>https://httpd.apache.org/docs/2.4/misc/security_tips.html</p>
|
|
||||||
|
|
||||||
<p>https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src#strict-dynamic</p>
|
|
||||||
1037
html/markdown.css
Normal file
1037
html/markdown.css
Normal file
File diff suppressed because it is too large
Load Diff
25
html/template.html
Normal file
25
html/template.html
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>README.md</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="stylesheet" href="markdown.css">
|
||||||
|
<style>
|
||||||
|
.markdown-body {
|
||||||
|
box-sizing: border-box;
|
||||||
|
min-width: 200px;
|
||||||
|
max-width: 980px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.markdown-body {
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
[README]
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
9
sites/fet.at/default.conf
Normal file
9
sites/fet.at/default.conf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName t2.test
|
||||||
|
ServerAlias t3.test
|
||||||
|
ServerAlias www.t2.test
|
||||||
|
<Proxy *>
|
||||||
|
#Include cfg/ldap.conf
|
||||||
|
</Proxy>
|
||||||
|
ProxyPass "/" "https://localhost:9443"
|
||||||
|
</VirtualHost>
|
||||||
Reference in New Issue
Block a user