This commit is contained in:
mguschin
2026-02-02 20:02:18 +03:00
parent 209a06b21f
commit b4b7b4b636
4 changed files with 53 additions and 0 deletions

22
.env.example Normal file
View File

@@ -0,0 +1,22 @@
# Example Environment Configuration
# Copy this file to .env and update the values as needed
# Database Configuration (external, managed separately)
DB_HOST=db-host:3306
DB_NAME=gitea
DB_USER=gitea
DB_PASSWORD=change_me_database_password
# Gitea Configuration
GITEA_DOMAIN=localhost
GITEA_ROOT_URL=http://localhost:3000
GITEA_HTTP_PORT=3000
GITEA_SSH_PORT=2222
# For production (repos.guschin.info):
# GITEA_DOMAIN=repos.guschin.info
# GITEA_ROOT_URL=https://repos.guschin.info
# GITEA_HTTP_PORT=3000
# GITEA_SSH_PORT=2222
# GITEA_SSH_LISTEN_PORT = 2222
# GITEA_START_SSH_SERVER = true

14
.env.local Normal file
View File

@@ -0,0 +1,14 @@
# Local Development Environment Configuration
# Database Configuration
DB_HOST=db:3306
DB_NAME=gitea
DB_USER=gitea
DB_PASSWORD=gitea_password_local
MYSQL_ROOT_PASSWORD=root_password_local
# Gitea Configuration
GITEA_DOMAIN=localhost
GITEA_ROOT_URL=http://localhost:3000
GITEA_HTTP_PORT=3000
GITEA_SSH_PORT=2222

16
.env.production Normal file
View File

@@ -0,0 +1,16 @@
# Production Environment Configuration
# Database Configuration
DB_HOST=db:3306
DB_NAME=gitea
DB_USER=gitea
DB_PASSWORD=CHANGE_ME_STRONG_PASSWORD
MYSQL_ROOT_PASSWORD=CHANGE_ME_ROOT_PASSWORD
# Gitea Configuration
GITEA_DOMAIN=repos.guschin.info
GITEA_ROOT_URL=https://repos.guschin.info
GITEA_HTTP_PORT=3000
GITEA_SSH_PORT=22
# IMPORTANT: Update passwords before deploying to production!

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env