--- assigned: '' created: 2024-07-02T19:40:15.783Z progress: 0 tags: - Duck - Hosts - LinkPC - Gitea type: note updated: 2024-11-24T00:42:09.000Z --- # Gitea - [gitea3757.ddns.net](https://gitea3757.ddns.net) - [docs.gitea.com](https://docs.gitea.com/administration/backup-and-restore?_highlight=backup) - [how-to-install-gitea-on-ubuntu-using-docker](https://www.digitalocean.com/community/tutorials/how-to-install-gitea-on-ubuntu-using-docker) ## Notes ```tsv Tue Jul 02 2024 18:22:16 GMT-0700 (Mountain Standard Time) sshd 292 root 3u IPv4 158983 0t0 TCP *:22 (LISTEN) sshd 292 root 4u IPv6 158985 0t0 TCP *:22 (LISTEN) nginx 297 root 7u IPv6 158397 0t0 TCP *:80 (LISTEN) nginx 297 root 8u IPv4 158398 0t0 TCP *:80 (LISTEN) nginx 297 root 9u IPv6 158399 0t0 TCP *:443 (LISTEN) nginx 297 root 10u IPv4 158400 0t0 TCP *:443 (LISTEN) nginx 298 www-data 7u IPv6 158397 0t0 TCP *:80 (LISTEN) nginx 298 www-data 8u IPv4 158398 0t0 TCP *:80 (LISTEN) nginx 298 www-data 9u IPv6 158399 0t0 TCP *:443 (LISTEN) nginx 298 www-data 10u IPv4 158400 0t0 TCP *:443 (LISTEN) nginx 299 www-data 7u IPv6 158397 0t0 TCP *:80 (LISTEN) nginx 299 www-data 8u IPv4 158398 0t0 TCP *:80 (LISTEN) nginx 299 www-data 9u IPv6 158399 0t0 TCP *:443 (LISTEN) nginx 299 www-data 10u IPv4 158400 0t0 TCP *:443 (LISTEN) nginx 300 www-data 7u IPv6 158397 0t0 TCP *:80 (LISTEN) nginx 300 www-data 8u IPv4 158398 0t0 TCP *:80 (LISTEN) nginx 300 www-data 9u IPv6 158399 0t0 TCP *:443 (LISTEN) nginx 300 www-data 10u IPv4 158400 0t0 TCP *:443 (LISTEN) nginx 301 www-data 7u IPv6 158397 0t0 TCP *:80 (LISTEN) nginx 301 www-data 8u IPv4 158398 0t0 TCP *:80 (LISTEN) nginx 301 www-data 9u IPv6 158399 0t0 TCP *:443 (LISTEN) nginx 301 www-data 10u IPv4 158400 0t0 TCP *:443 (LISTEN) mariadbd 413 mysql 126u IPv4 158506 0t0 TCP 127.0.0.1:3306 (LISTEN) simplehtt 429 nobody 3u IPv4 159054 0t0 TCP *:60080 (LISTEN) simplehtt 429 nobody 6u IPv4 159055 0t0 TCP *:60443 (LISTEN) simplehtt 431 nobody 3u IPv4 159054 0t0 TCP *:60080 (LISTEN) simplehtt 431 nobody 6u IPv4 159055 0t0 TCP *:60443 (LISTEN) master 785 root 13u IPv4 161870 0t0 TCP 127.0.0.1:25 (LISTEN) miniserv. 811 root 5u IPv4 160568 0t0 TCP *:12321 (LISTEN) ``` ```bash Tue Jul 02 2024 18:22:13 GMT-0700 (Mountain Standard Time) turnkey-init ``` ## api.ini ```ini Tue Jul 02 2024 19:20:01 GMT-0700 (Mountain Standard Time) ; This is gitea conf file - originally provided by TurnKey and updated on ; firstboot. ; ; For further/full options, please see app.example.ini in this directory ; (default: custom/conf/app.ini). ; ; See https://docs.gitea.com/administration/config-cheat-sheet for additional ; documentation. APP_NAME = TurnKey Gitea RUN_USER = git WORK_PATH = /home/git/ RUN_MODE = prod [database] NAME = gitea USER = gitea PASSWD = d4f3727c6fab725191fcea09d23194e1 LOG_SQL = false DB_TYPE = mysql HOST = 127.0.0.1:3306 SCHEMA = SSL_MODE = disable PATH = /home/git/data/gitea.db [server] DOMAIN = gitea.ddns.net PROTOCOL = http+unix HTTP_ADDR = /home/git/run/gitea.sock UNIX_SOCKET_PERMISSION = 666 SSH_DOMAIN = gitea.ddns.net HTTP_PORT = 3000 ROOT_URL = https://gitea.ddns.net/ APP_DATA_PATH = /home/git/data DISABLE_SSH = false SSH_PORT = 22 LFS_START_SERVER = true LFS_JWT_SECRET = e1iv1xe4CHhAJvLnOsmmf2HCV3vLclDltREPrg1Rij4 OFFLINE_MODE = false [markup.restructuredtext] ENABLED = true FILE_EXTENSIONS = .rst RENDER_COMMAND = rst2html IS_INPUT_FILE = false [mailer] ENABLED = true FROM = mikepharesjr@msn.com PROTOCOL = sendmail SENDMAIL_PATH = /usr/sbin/sendmail SENDMAIL_TIMEOUT = 5m [repository] ROOT = /home/git/data/gitea-repositories DEFAULT_BRANCH = master [lfs] PATH = /home/git/data/lfs [service] REGISTER_EMAIL_CONFIRM = true ENABLE_NOTIFY_MAIL = true DISABLE_REGISTRATION = false ALLOW_ONLY_EXTERNAL_REGISTRATION = false ENABLE_CAPTCHA = false REQUIRE_SIGNIN_VIEW = false DEFAULT_KEEP_EMAIL_PRIVATE = false DEFAULT_ALLOW_CREATE_ORGANIZATION = true DEFAULT_ENABLE_TIMETRACKING = true NO_REPLY_ADDRESS = noreply@gitea.ddns.net [openid] ENABLE_OPENID_SIGNUP = true [cron.update_checker] ENABLED = false [session] PROVIDER = file [log] MODE = console LEVEL = info ROOT_PATH = /home/git/log [repository.pull-request] DEFAULT_MERGE_STYLE = merge [repository.signing] DEFAULT_TRUST_MODEL = committer [security] INSTALL_LOCK = true INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3MTk5Njk3NDh9.iDm3wTEKbra2soSowoVgy1Xrf1aJelaCgmUel5wA0WQ PASSWORD_HASH_ALGO = pbkdf2 [oauth2] JWT_SECRET = gQcCHgWy1l3aV6I8JUY3_QCNqHjWvHIGNg8BZOgC1wM ``` ```bash Tue Jul 02 2024 19:21:54 GMT-0700 (Mountain Standard Time) cd /home/git/custom/conf/ nano app.ini chown git:git app.ini systemctl restart gitea.service systemctl status gitea.service ``` ```git Tue Jul 02 2024 19:21:00 GMT-0700 (Mountain Standard Time) +DEFAULT_BRANCH = master +-ROOT_URL = https://gitea.ddns.net/ ``` - [instances_access_files](https://linuxcontainers.org/incus/docs/main/howto/instances_access_files/) ```bash Tue Jul 02 2024 19:46:38 GMT-0700 (Mountain Standard Time) su git cd /home/git/ ./gitea dump ls -la exit exit incus file pull 115-turnkey-gitea/home/git/gitea-dump-1719974188.zip /home/free-file-sync/proxmox/ ``` ```bash Tue Jul 02 2024 19:46:53 GMT-0700 (Mountain Standard Time) git push gogs master ``` - [windows-service](https://docs.gitea.com/installation/windows-service) ## Dockge ```bash Tue Jul 09 2024 18:21:51 GMT-0700 (Mountain Standard Time) docker cp gitea-server-1:/etc/gitea/app.ini /home/phares/app.ini nano /home/phares/app.ini docker cp /home/phares/app.ini gitea-server-1:/etc/gitea/app.ini rm /home/phares/app.ini ``` ## Tea-CLI Login ```bash Fri Jul 26 2024 17:23:36 GMT-0700 (Mountain Standard Time) L:\Git\tea\tea-0.9.2-windows-amd64.exe login add ## Tea-CLI Repos Create ```bash Tue Jul 09 2024 19:21:26 GMT-0700 (Mountain Standard Time) L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name aa --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name barcode-host --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name clipboard --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name clip-board --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name clipboard-send-keys --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name dep08siasm --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name dep08sihtrplc --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name file-folder-helper --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name file-watcher --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name fi-operations --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name hello-world --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name jackyzha0-quartz-phares --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name linux-raspbian-pi-3-model-b --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name linux-redhat-meslvec0004 --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name linux-redhat-mesxsec014 --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name linux-ubuntu-asus --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name linux-ubuntu-beelink --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name linux-ubuntu-server --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name mesafibacklog --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name met08anlysdifaast230 --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name met08awct --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name met08ddupsfs6420 --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name met08ddupsp1tbi --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name met08resihgcv --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name met08resimapcde --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name met08resisrp2100 --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name met08thftirqs408m --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name met08thftirstratus --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name metclimatec --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name nginx-conf --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name notes-ec-documentation --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name notes-infineon --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name notes-kaban --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name notes-network --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name notes-phares --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name notes-user-secrets --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name odoo-17-0 --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name oi-metrology --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name parsing-packets --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name view-by-distance-mklink-console --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name vs-code-settings --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name www --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name yo-vscode --owner phares3757 ``` ```bash Tue Jul 09 2024 19:21:34 GMT-0700 (Mountain Standard Time) L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name vs-code-settings --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name vs-code-settings-insiders --owner phares3757 L:\Git\tea\tea-0.9.2-windows-amd64.exe repos create --name vs-code-settings-oss --owner phares3757 ``` ```bash Thu Jul 11 2024 16:36:37 GMT-0700 (Mountain Standard Time) L:\Git\tea\tea-0.9.2-windows-amd64.exe pulls create --repo phares3757/met08ddupsp1tbi -b master --head v2_56_0 ``` ## Runner ```bash Fri Jul 19 2024 12:35:53 GMT-0700 (Mountain Standard Time) cd /home/phares wget https://gitea.com/gitea/act_runner/releases/download/v0.2.10/act_runner-0.2.10-linux-amd64 chmod +x act_runner-0.2.10-linux-amd64 ./act_runner-0.2.10-linux-amd64 -v ./act_runner-0.2.10-linux-amd64 register --no-interactive --instance https://gitea3757.ddns.net/ --token {token} ./act_runner-0.2.10-linux-amd64 daemon ``` ```bash Fri Jul 19 2024 13:40:38 GMT-0700 (Mountain Standard Time) cp /home/phares/act_runner-0.2.10-linux-amd64 /usr/local/bin/act_runner mkdir /etc/act_runner mkdir /var/lib/act_runner touch /etc/act_runner/config.yaml /etc/systemd/system/act_runner.service ./act_runner-0.2.10-linux-amd64 register --no-interactive --config /etc/act_runner/config.yaml --instance http://192.168.11.2:3000/ --name systemd --token asdf cat /etc/act_runner/config.yaml ``` ```conf Fri Jul 19 2024 13:41:05 GMT-0700 (Mountain Standard Time) [Unit] Description=Gitea Actions runner Documentation=https://gitea.com/gitea/act_runner After=docker.service [Service] ExecStart=/usr/local/bin/act_runner daemon --config /etc/act_runner/config.yaml ExecReload=/bin/kill -s HUP $MAINPID WorkingDirectory=/var/lib/act_runner TimeoutSec=0 RestartSec=10 Restart=always User=act_runner [Install] WantedBy=multi-user.target ``` ```bash L:\Git\tea\tea-0.9.2-windows-amd64.exe login phares L:\Git\tea\tea-0.9.2-windows-amd64.exe login delete phares L:\Git\tea\tea-0.9.2-windows-amd64.exe login add ``` ```bash L:\Git\tea\tea-0.9.2-windows-amd64.exe login mikep L:\Git\tea\tea-0.9.2-windows-amd64.exe org ``` ## Push Docker Image ```bash 1732388683697 = 638679854836970000 = Sat Nov 23 2024 12:04:43 GMT-0700 (Mountain Standard Time) # build an image with tag # docker build -t {registry}/{owner}/{image}:{tag} . # docker build -t https://33aada599f8e245782e68931fe2629a959af5d26@gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest # docker build https://33aada599f8e245782e68931fe2629a959af5d26@gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest # docker build -t gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest # docker build gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest # docker push https://33aada599f8e245782e68931fe2629a959af5d26@gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest # docker push gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api # docker push immich-to-slideshow-webapp:latest # docker tag 87f3280803c4 gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest # docker tag 87f3280803c4 https://33aada599f8e245782e68931fe2629a959af5d26@gitea.phares.duckdns.org/phares3757/immich-to-slideshow-api:latest # docker tag 87f3280803c4 gitea.phares.duckdns.org:443/phares3757/immich-to-slideshow-api:latest # docker push gitea.phares.duckdns.org:443/phares3757/immich-to-slideshow-api:latest docker login gitea.phares.duckdns.org:443 docker tag b84c1f73de01 gitea.phares.duckdns.org:443/phares3757/immich-to-slideshow:latest docker push gitea.phares.duckdns.org:443/phares3757/immich-to-slideshow:latest ```