mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2025-09-26 06:57:26 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
3adbf0b442 | ||
|
6c0a2ab20b | ||
|
1943723dd3 |
@@ -329,3 +329,6 @@
|
|||||||
[1.13.1]
|
[1.13.1]
|
||||||
* Update Gitea to 1.9.1
|
* Update Gitea to 1.9.1
|
||||||
|
|
||||||
|
[1.13.2]
|
||||||
|
* Make sessions persist restarts
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
"author": "Gitea developers",
|
"author": "Gitea developers",
|
||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"tagline": "A painless self-hosted Git Service",
|
"tagline": "A painless self-hosted Git Service",
|
||||||
"version": "1.13.1",
|
"version": "1.13.2",
|
||||||
"healthCheckPath": "/healthcheck",
|
"healthCheckPath": "/healthcheck",
|
||||||
"httpPort": 3000,
|
"httpPort": 3000,
|
||||||
"addons": {
|
"addons": {
|
||||||
|
@@ -95,3 +95,11 @@ PATH =
|
|||||||
[indexer]
|
[indexer]
|
||||||
; this setting is protected and can't be modified
|
; this setting is protected and can't be modified
|
||||||
ISSUE_INDEXER_PATH = /app/data/appdata/indexers/issues.bleve
|
ISSUE_INDEXER_PATH = /app/data/appdata/indexers/issues.bleve
|
||||||
|
|
||||||
|
[session]
|
||||||
|
PROVIDER = file
|
||||||
|
PROVIDER_CONFIG = /run/gitea/sessions
|
||||||
|
COOKIE_SECURE = true
|
||||||
|
COOKIE_NAME = cloudron_gitea
|
||||||
|
GC_INTERVAL_TIME = 2592000
|
||||||
|
|
||||||
|
9
start.sh
9
start.sh
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
mkdir -p /run/gitea/tmp/uploads /run/sshd
|
mkdir -p /run/gitea/tmp/uploads /run/sshd /run/gitea/sessions
|
||||||
|
|
||||||
setup_ldap_source() {
|
setup_ldap_source() {
|
||||||
set -eu
|
set -eu
|
||||||
@@ -119,6 +119,13 @@ crudini --set "/run/gitea/app.ini" log MODE "console"
|
|||||||
crudini --set "/run/gitea/app.ini" log ROOT_PATH "/run/gitea"
|
crudini --set "/run/gitea/app.ini" log ROOT_PATH "/run/gitea"
|
||||||
crudini --set "/run/gitea/app.ini" indexer ISSUE_INDEXER_PATH "/app/data/appdata/indexers/issues.bleve"
|
crudini --set "/run/gitea/app.ini" indexer ISSUE_INDEXER_PATH "/app/data/appdata/indexers/issues.bleve"
|
||||||
|
|
||||||
|
# this can be removed in the next release
|
||||||
|
crudini --set "/run/gitea/app.ini" session PROVIDER "file"
|
||||||
|
crudini --set "/run/gitea/app.ini" session PROVIDER_CONFIG "/run/gitea/sessions"
|
||||||
|
crudini --set "/run/gitea/app.ini" session COOKIE_SECURE "true"
|
||||||
|
crudini --set "/run/gitea/app.ini" session COOKIE_NAME "cloudron_gitea"
|
||||||
|
crudini --set "/run/gitea/app.ini" session GC_INTERVAL_TIME 2592000
|
||||||
|
|
||||||
echo "==> Creating dirs and changing permissions"
|
echo "==> Creating dirs and changing permissions"
|
||||||
mkdir -p /app/data/repository /app/data/ssh /app/data/custom
|
mkdir -p /app/data/repository /app/data/ssh /app/data/custom
|
||||||
chown -R git:git /app/data /run/gitea
|
chown -R git:git /app/data /run/gitea
|
||||||
|
@@ -349,7 +349,7 @@ return done();
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can login', login.bind(null, username, password));
|
xit('can login', login.bind(null, username, password)); // no need to relogin since session persists
|
||||||
it('displays correct clone url', checkCloneUrl);
|
it('displays correct clone url', checkCloneUrl);
|
||||||
it('can clone the url', cloneRepo);
|
it('can clone the url', cloneRepo);
|
||||||
it('file exists in repo', fileExists);
|
it('file exists in repo', fileExists);
|
||||||
|
Reference in New Issue
Block a user