summaryrefslogtreecommitdiff
path: root/blog/src
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-04-03 23:15:38 -0700
committerDavid Luevano Alvarado <david@luevano.xyz>2021-04-03 23:15:38 -0700
commit2b94a020ccb78fa486691767e35110914fd53e8c (patch)
treedef0f1627e3eb02ca5ce2893a73819c30fb40826 /blog/src
parent1d3d721229e060c70ee28848d8b8d227e764990a (diff)
Add new blog entry and update gb stuff
Diffstat (limited to 'blog/src')
-rw-r--r--blog/src/.files5
-rw-r--r--blog/src/a/git_server_with_cgit.md12
-rw-r--r--blog/src/index.md2
3 files changed, 10 insertions, 9 deletions
diff --git a/blog/src/.files b/blog/src/.files
index b6383f6..e524da2 100644
--- a/blog/src/.files
+++ b/blog/src/.files
@@ -1,8 +1,9 @@
-1615856381 0 ./index.md
+1615856381 1616720565 ./index.md
1616122695 0 ./a/website_with_nginx.md
+1616306327 1616353229 ./a/git_server_with_cgit.md
1615862784 0 ./a/el_blog_ya_tiene_timestamps.md
1615701454 0 ./a/shell_scripting.md
1614695711 0 ./a/sql_video_notes.md
1614431313 0 ./a/first_blog_post.md
1615701443 0 ./a/linux_video_notes.md
-1616234086 1616234777 ./a/mail_server_with_postfix.md
+1616234086 1616299559 ./a/mail_server_with_postfix.md
diff --git a/blog/src/a/git_server_with_cgit.md b/blog/src/a/git_server_with_cgit.md
index 975eaf7..d8a6037 100644
--- a/blog/src/a/git_server_with_cgit.md
+++ b/blog/src/a/git_server_with_cgit.md
@@ -1,6 +1,6 @@
-# Create a git server with cgit (nginx)
+# Create a git server and setup cgit web app (on Nginx)
-My git server is all I need to setup up to actually *kill* my other server (I've been moving from servers on these last 2-3 blog entries), that's why I'm already doing this entry. I'm basically following [git's guide on setting up a server](https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server) plus some specific stuff for (btw i use) Arch Linux ([Arch Linux Wiki: Git server](https://wiki.archlinux.org/index.php/Git_server#Web_interfaces) and [Step by step guide on setting up git server in arch linux (pushable)](https://miracoin.wordpress.com/2014/11/25/step-by-step-guide-on-setting-up-git-server-in-arch-linux-pushable/)).
+My git server is all I need to setup to actually *kill* my other server (I've been moving from servers on these last 2-3 blog entries), that's why I'm already doing this entry. I'm basically following [git's guide on setting up a server](https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server) plus some specific stuff for (btw i use) Arch Linux ([Arch Linux Wiki: Git server](https://wiki.archlinux.org/index.php/Git_server#Web_interfaces) and [Step by step guide on setting up git server in arch linux (pushable)](https://miracoin.wordpress.com/2014/11/25/step-by-step-guide-on-setting-up-git-server-in-arch-linux-pushable/)).
Note that this is mostly for personal use, so there's no user/authentication control other than that of SSH. Also, most if not all commands here are run as root.
@@ -70,8 +70,8 @@ systemctl enable git-daemon.socket
You're basically done. Now you should be able to push/pull repositories to your server... except, you haven't created any repository in your server, that's right, they're not created automatically when trying to push. To do so, you have to do the following sequence (assuming you're "`cd`'ed" into the `/home/git` directory):
```sh
-mkdir {project_name}.git
-cd {project_name}.git
+mkdir {repo_name}.git
+cd {repo_name}.git
```
Those two lines above will need to be run each time you want to add a new repository to your server (yeah, kinda lame... although there are options to "automate" this, I like it this way).
@@ -120,7 +120,7 @@ Where the `server_name` line depends on you, I have mine setup to `git.luevano.x
Now, all that's left is to configure `cgit`. Create the configuration file `/etc/cgitrc` with the following content (my personal options, pretty much the default):
-```
+```apache
css=/cgit.css
source-filter=/usr/lib/cgit/filters/syntax-highlighting-edited.sh
logo=/cgit.png
@@ -139,7 +139,7 @@ repo.desc={short_description}
Where you can uncomment the `robots` line to let web crawlers (like Google's) to index your `git` web app. And at the end keep all your repositories (the ones you want to make public), for example for my [*dotfiles*](https://git.luevano.xyz/.dots) I have:
-```
+```apache
...
repo.url=.dots
repo.path=/home/git/.dots.git
diff --git a/blog/src/index.md b/blog/src/index.md
index 2a871ee..475d807 100644
--- a/blog/src/index.md
+++ b/blog/src/index.md
@@ -1,5 +1,5 @@
# Luévano's Blog
-Welcome to my blog where I'll post whatever I'm pleased, ranging from rants to how-to's. Además, este pex va a estar en español e inglés porque quiero (no una mezcla en cada entrada, pero sí entradas completas en diferentes lenguajes).
+Welcome to my blog where I'll post whatever I please, ranging from rants to how-to's. Además, este pex va a estar en español e inglés porque quiero (no una mezcla en cada entrada, pero sí entradas completas en diferentes lenguajes).
## Articles