aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTolmachev Igor <me@igorek.dev>2026-01-07 04:09:27 +0900
committerTolmachev Igor <me@igorek.dev>2026-01-07 04:09:27 +0900
commitda07215a89afe057e1f1642a2e45cc86e1fd59c3 (patch)
treee965fa891da43b7527b6fd84ebc6dfb85633ceec
parent5b5d5a2925be5b941c210b4daed8f1dc0fa0a52d (diff)
downloadcgit_material_docker-da07215a89afe057e1f1642a2e45cc86e1fd59c3.tar.gz
cgit_material_docker-da07215a89afe057e1f1642a2e45cc86e1fd59c3.zip
Improve image structure
-rw-r--r--.dockerignore1
-rw-r--r--README.md24
-rw-r--r--lighttpd.conf2
-rw-r--r--www/cgit.css6
-rw-r--r--www/css/colors.css (renamed from www/static/colors.css)0
-rw-r--r--www/css/hl.css (renamed from www/static/hl.css)0
-rw-r--r--www/css/md.css (renamed from www/static/md.css)0
7 files changed, 21 insertions, 12 deletions
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..d838da9
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1 @@
examples/
diff --git a/README.md b/README.md
index 4813421..6448380 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,17 @@ You can map local directories to the following paths inside the container to cus
18 18
19This is the recommended directory to store your git repositories. 19This is the recommended directory to store your git repositories.
20 20
21### /app/etc/cgitrc 21### /app/www/static/
22
23Used for storing static assets such as images.
24
25- **Note:** When referencing these files in `cgitrc`, write the path relative to `/app/www/`.
26
27### /app/about/
28
29Used to store specific Markdown files for repository descriptions.
30
31### /app/etc/cgitrc (and /app/etc/ folder)
22 32
23The main configuration file. It follows the standard `cgitrc` syntax. 33The main configuration file. It follows the standard `cgitrc` syntax.
24 34
@@ -33,14 +43,12 @@ Contains HTML fragments included in the pages.
33 43
34Contains the original cgit filters and two custom filters required for the Material theme. You can add your own custom filter scripts to this directory. 44Contains the original cgit filters and two custom filters required for the Material theme. You can add your own custom filter scripts to this directory.
35 45
36### /app/www/static/ 46- **Usage:** Set `repo.readme=/app/about/filename.md` in your config.
37 47
38Used for storing static assets such as images. 48### /app/www/css
39 49
40- **Note:** When referencing these files in `cgitrc`, write the path relative to `/app/www/`. 50Contains files for markdown syntax highlighting and color variables (`hl.css`, `md.css`, `colors.css`).
41 51
42### /app/about/ 52## Examples
43
44Used to store specific Markdown files for repository descriptions.
45 53
46- **Usage:** Set `repo.readme=/app/about/filename.md` in your config. 54Configuration examples are located in the `/examples` directory. This includes the configuration used for `git.igorek.dev`.
diff --git a/lighttpd.conf b/lighttpd.conf
index 88ad890..aa2ada8 100644
--- a/lighttpd.conf
+++ b/lighttpd.conf
@@ -3,7 +3,7 @@ server.modules += ( "mod_cgi", "mod_alias", "mod_rewrite" )
3server.port = 80 3server.port = 80
4server.document-root = "/app/www" 4server.document-root = "/app/www"
5 5
6$HTTP["url"] !~ "^/(?:cgit\.(?:css|js|png)$|favicon\.ico$|robots\.txt$|static)" { 6$HTTP["url"] !~ "^/(?:cgit\.(?:css|js|png)$|favicon\.ico$|robots\.txt$|css|static)" {
7 alias.url = ( "" => "/app/www/cgit.cgi" ) 7 alias.url = ( "" => "/app/www/cgit.cgi" )
8 cgi.assign = ( "" => "" ) 8 cgi.assign = ( "" => "" )
9} 9}
diff --git a/www/cgit.css b/www/cgit.css
index 4baa89d..4819cc0 100644
--- a/www/cgit.css
+++ b/www/cgit.css
@@ -1,7 +1,7 @@
1/* 1. Import color scheme, highlighting and markdown styles */ 1/* 1. Import color scheme, highlighting and markdown styles */
2@import url("static/colors.css"); 2@import url("css/colors.css");
3@import url("static/hl.css"); 3@import url("css/hl.css");
4@import url("static/md.css"); 4@import url("css/md.css");
5 5
6/* 2. Global Reset & Body */ 6/* 2. Global Reset & Body */
7* { 7* {
diff --git a/www/static/colors.css b/www/css/colors.css
index 4ac8629..4ac8629 100644
--- a/www/static/colors.css
+++ b/www/css/colors.css
diff --git a/www/static/hl.css b/www/css/hl.css
index 15998e0..15998e0 100644
--- a/www/static/hl.css
+++ b/www/css/hl.css
diff --git a/www/static/md.css b/www/css/md.css
index c8966c3..c8966c3 100644
--- a/www/static/md.css
+++ b/www/css/md.css