Inicjalizacja repozytorium po uporządkowaniu Gitea; dodanie gitignore

This commit is contained in:
root
2026-03-17 23:41:37 +01:00
commit 5e72233730
22 changed files with 631 additions and 0 deletions

11
gitea/init-env.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
if [ ! -f .env ]; then
DB_PASS=$(openssl rand -hex 16)
echo "Creating .env..."
echo "DB_PASSWORD=$DB_PASS" > .env
echo "GITEA_DOMAIN=gitea.example.com" >> .env
echo "GITEA_URL=https://gitea.example.com/" >> .env
echo "RUNNER_TOKEN=" >> .env
echo "Update GITEA_DOMAIN and GITEA_URL in .env"
fi