This commit is contained in:
Eric Meehan 2024-08-08 11:04:51 -04:00
parent 861aade5e9
commit 2d39534023
7 changed files with 69 additions and 12 deletions

6
files/footer.html Normal file
View File

@ -0,0 +1,6 @@
<br></br>
<footer>
<ul>
<li><p>Copyright © 2024 Eric O'Neill Meehan. All rights reserved.</p></li>
</ul>
</footer>

View File

@ -1,9 +1,20 @@
# name of your site or organization, to appear in page titles.
$site_name = "EOM - Git";
# path to git projects (<project>.git)
$projectroot = "/usr/local/apache2/htdocs";
# directory to use for temp files
$git_temp = "/tmp";
$per_request_config = true;
$my_uri = "https://git.eom.dev/";
$my_url = "https://git.eom.dev/";
$base_url = "https://git.eom.dev/";
$omit_owner = true;
$site_header = "/usr/local/apache2/htdocs/static/header.html";
$site_footer = "/usr/local/apache2/htdocs/static/footer.html";
# target of the home link on top of all pages
#$home_link = $my_uri || "/";
@ -14,16 +25,21 @@ $git_temp = "/tmp";
#$projects_list = $projectroot;
# stylesheet to use
#@stylesheets = ("static/gitweb.css");
@stylesheets = (
"https://media.eom.dev/gitweb/gitweb.css",
"https://www.eom.dev/css/header.css",
"https://www.eom.dev/css/nav.css",
"https://www.eom.dev/css/footer.css"
);
# javascript code for gitweb
#$javascript = "static/gitweb.js";
$javascript = "https://media.eom.dev/gitweb/gitweb.js";
# logo to use
#$logo = "static/git-logo.png";
$logo = "https://media.eom.dev/gitweb/git-logo.png";
# the 'favicon'
#$favicon = "static/git-favicon.png";
$favicon = "https://media.eom.dev/favicon/favicon.ico";
# git-diff-tree(1) options to use for generated patches
#@diff_opts = ("-M");

14
files/header.html Normal file
View File

@ -0,0 +1,14 @@
<header style="font-size: bigger">
<h1>EOM</h1>
</header>
<nav>
<ul>
<li><a href="https://www.eom.dev/">Home</a></li>
<li><a href="https://www.eom.dev/blog.shtml">Blog</a></li>
<li><a href="https://media.eom.dev/">Media</a></li>
<li><a href="https://git.eom.dev/">Git</a></li>
<li><a href="https://www.eom.dev/about.shtml">About</a></li>
</ul>
</nav>
<br></br>
<h1>Git</h1>

View File

@ -14,7 +14,7 @@ LoadModule dav_fs_module modules/mod_dav_fs.so
# on the directory where the DavLockDB is placed and on any directory where
# "Dav On" is specified.
DavLockDB "/usr/local/apache2/var/DavLock"
DavLockDB "/usr/local/apache2/DavLock"
<Directory "/usr/local/apache2/htdocs">
Dav On

View File

@ -5,3 +5,7 @@ AddOutputFilter INCLUDES .shtml
<Directory "/usr/local/apache2/htdocs">
Options +Includes
</Directory>
<IfModule dir_module>
DirectoryIndex index.shtml
</IfModule>

View File

@ -1,6 +1,17 @@
---
# tasks file for git
- name: Create a config map for httpd
- name: Create a config map for git gitweb
k8s:
state: present
api_version: v1
kind: ConfigMap
name: git-gitweb
namespace: "eom-{{ target_namespace }}"
definition:
data:
gitweb.conf: "{{ lookup('file', 'gitweb.conf') }}"
- name: Create a config map for git httpd
vars:
httpd_server_name: "git.eom.dev"
httpd_conf_extra:
@ -10,7 +21,7 @@
state: present
api_version: v1
kind: ConfigMap
name: git
name: git-httpd
namespace: "eom-{{ target_namespace }}"
definition:
data:
@ -85,16 +96,22 @@
- name: gitweb
image: ericomeehan/gitweb
volumeMounts:
- name: config
- name: gitweb-config
mountPath: /etc/gitweb.conf
subPath: gitweb.conf
- name: httpd-config
mountPath: /usr/local/apache2/conf
- name: data
mountPath: /usr/local/apache2/htdocs
ports:
- containerPort: 80
volumes:
- name: config
- name: gitweb-config
configMap:
name: git
name: git-gitweb
- name: httpd-config
configMap:
name: git-httpd
- name: data
persistentVolumeClaim:
claimName: git

View File

@ -38,8 +38,8 @@
app: www
spec:
containers:
- name: httpd
image: httpd
- name: www
image: ericomeehan/www
volumeMounts:
- name: config
mountPath: /usr/local/apache2/conf