From fd770ecb4df4d7f05b538c50be1c21b7b9385d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Sun, 11 Jun 2023 22:32:42 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=8A=E3=81=A1=E3=82=93=E3=81=A1=E3=82=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 67 +++++-------------------------------------------------- 1 file changed, 6 insertions(+), 61 deletions(-) diff --git a/README.md b/README.md index a3a7d01..f858e64 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Gitlinは[GotHub](https://codeberg.org/gothub/gothub)のフォークです。 * Go 1.20以上 * nginx又はOpenBSDのrelayd -* 良いOS (GNU/Linux、OpenBSD、又はFreeBSD) +* 良いOS (GNU/Linux、OpenBSD、NetBSD、OpenIndiana、又はFreeBSD) ## インストールする方法 @@ -26,7 +26,7 @@ nvim /etc/rc.d/gitlin ``` #!/bin/ksh -daemon="/var/www/htdocs/DOMAIN/gitlin serve" +daemon="/usr/local/bin/gitlin serve" . /etc/rc.d/rc.subr @@ -42,60 +42,6 @@ rcctl enable gitlin rcctl start gitlin ``` -### FreeBSD - -```sh -nvim /usr/local/etc/rc.d/gitlin -``` - -``` -#!/bin/sh - -# PROVIDE: gitlin -# REQUIRE: NETWORKING SYSLOG -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf to enable gitlin: - -. /etc/rc.subr - -name="gitlin" -rcvar="gitlin_enable" - -load_rc_config $name - -: ${gitlin_enable:="NO"} -: ${gitlin_facility:="daemon"} -: ${gitlin_priority:="debug"} - -command="/var/htdocs/DOMAIN/${name}" -procname="/var/htdocs/DOMAIN/${name}" - -pidfile="/var/run/${name}.pid" - -start_cmd="${name}_start" - -gitlin_start() { - for d in /var/db/gitlin /var/log/gitlin; do - if [ ! -e "$d" ]; then - mkdir "$d" - fi - done - /usr/sbin/daemon -S -l ${gitlin_facility} -s ${gitlin_priority} -T ${name} \ - -p ${pidfile} \ - /usr/bin/env -i \ - "PATH=/var/htdocs/DOMAIN:${PATH}" \ - $command -} - -run_rc_command "$1" -``` - -```sh -sysrc gitlin_enable=YES -service start gitlin -``` - ### Crux ```sh @@ -141,7 +87,7 @@ esac # End of file ``` -### Devuan/Debian/Ubuntu/Arch/Artix/AlmaLinux等 +### Devuan ```sh nvim /etc/init.d/gitlin @@ -160,7 +106,7 @@ DAEMON=/usr/bin/$NAME start () { echo "Gitlinサーバーは開始中:\n" - /usr/bin/gitlin -s 9910 &>/dev/null & + /usr/bin/gitlin -s 9715 &>/dev/null & touch /var/lock/subsys/gitlin echo } @@ -229,7 +175,7 @@ relay www { listen on $relayd_address port 443 tls protocol $relayd_address - forward to check tcp port 9910 + forward to check tcp port 9715 } ``` @@ -238,7 +184,6 @@ relay www { ```sh server { server_name DOMAIN www.DOMAIN; - root /var/www/htdocs/gitlin; access_log off; error_log off; @@ -252,7 +197,7 @@ server { } location / { - proxy_pass http://localhost:9910; + proxy_pass http://localhost:9715; } listen [::]:443 ssl ipv6only=on;