Compare commits
3 commits
14ef3c9dcd
...
c7208a8462
Author | SHA1 | Date | |
---|---|---|---|
c7208a8462 | |||
77212772f3 | |||
9e0bfc242b |
4 changed files with 24 additions and 9 deletions
7
src/Forgejo/.install.fish
Executable file
7
src/Forgejo/.install.fish
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
read -P "Install main config [yN] ? " inst
|
||||||
|
test $inst = "y"; and sudo install -o forgejo -g forgejo -m a=,u=rw -b -D app.ini /etc/forgejo/app.ini
|
||||||
|
|
||||||
|
for file in (find custom -type f)
|
||||||
|
sudo install -o forgejo -g forgejo -m a=,u=rw -D $file /var/lib/forgejo/$file
|
||||||
|
end
|
|
@ -1,5 +1,7 @@
|
||||||
# Forgejo
|
# Forgejo
|
||||||
<https://docs.gitea.io/en-us/administration/config-cheat-sheet/>
|
<https://docs.gitea.io/en-us/administration/config-cheat-sheet/>
|
||||||
|
|
||||||
Install to `/etc/forgejo/app.ini`.
|
Install `app.ini` to `/etc/forgejo/app.ini`.
|
||||||
Fill in secrets.
|
Fill in secrets.
|
||||||
|
|
||||||
|
Install `custom` to `/var/lib/forgejo/custom`.
|
||||||
|
|
11
src/Forgejo/custom/templates/custom/header.tmpl
Normal file
11
src/Forgejo/custom/templates/custom/header.tmpl
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<style>
|
||||||
|
@import url('https://free.bboxtype.com/embedfonts/?family=FiraGO:200,400,600');
|
||||||
|
@import url('https://free.bboxtype.com/embedfonts/?family=FiraMono:400,500,700');
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--fonts-proportional: FiraGO, Fira Sans, sans-serif;
|
||||||
|
--fonts-monospace: Fira Mono, monospace;
|
||||||
|
|
||||||
|
--font-weight-bold: 600;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -1,9 +1,4 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
sudo mkdir -p /etc/nginx
|
sudo install -m a=r,u=rw -D nginx.conf /etc/nginx/
|
||||||
sudo install -m a=r,u=rw nginx.conf /etc/nginx/
|
sudo install -m a=r,u=rw -D conf/* /etc/nginx/conf/
|
||||||
|
sudo install -m a=r,u=rw -D sites/* /etc/nginx/sites-enabled/
|
||||||
sudo mkdir -p /etc/nginx/conf
|
|
||||||
sudo install -m a=r,u=rw conf/* /etc/nginx/conf/
|
|
||||||
|
|
||||||
sudo mkdir -p /etc/nginx/sites-enabled
|
|
||||||
sudo install -m a=r,u=rw sites/* /etc/nginx/sites-enabled/
|
|
||||||
|
|
Loading…
Reference in a new issue