feat: using self signed certs

This commit is contained in:
2025-02-10 15:12:51 -05:00
parent 7ae2cd6588
commit 0c5a7ef7f3
8 changed files with 55 additions and 20 deletions

View File

@@ -17,18 +17,29 @@ TEMP_PATH = /tmp/gitea/uploads
[server]
APP_DATA_PATH = /var/lib/gitea
LFS_START_SERVER = true
OFFLINE_MODE = true
LFS_JWT_SECRET = x-----------------------------------------x
DISABLE_SSH = false
START_SSH_SERVER = true
SSH_PORT = 2222
SSH_LISTEN_PORT = 2222
BUILTIN_SSH_SERVER_USER = git
LFS_START_SERVER = true
OFFLINE_MODE = true
SSH_DOMAIN = localhost
BUILTIN_SSH_SERVER_USER = git
; --- No SSL ---
; DOMAIN = localhost
; ROOT_URL = http://localhost:80/
; HTTP_PORT = 80
; --- Self-Signed Certificate ---
PROTOCOL = https
ROOT_URL = https://localhost:443/
DOMAIN = localhost
ROOT_URL = http://localhost:80/
HTTP_PORT = 80
LFS_JWT_SECRET = x-----------------------------------------x
HTTP_PORT = 443
CERT_FILE = cert.pem
KEY_FILE = key.pem
[database]
DB_TYPE = sqlite3