Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
seafile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
seafile
Commits
9c55c274
Verified
Commit
9c55c274
authored
3 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
feat: Update readme
parent
7bedc437
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+89
-71
89 additions, 71 deletions
README.md
with
89 additions
and
71 deletions
README.md
+
89
−
71
View file @
9c55c274
...
...
@@ -18,24 +18,18 @@ Volume Mounts:
Empty Directory
*
/haiwen/logs
*
/haiwen/pids
*
/tmp
Persistent Volume
*
/haiwen/conf
*
/haiwen/ccnet
*
/haiwen/seafile-data
*
/haiwen/seahub-data
*
/conf
*
/data
Configuration Files
*
/haiwen/ccnet/seafile.ini
*
/haiwen/conf/ccnet.conf
*
/haiwen/conf/seafdav.conf
*
/haiwen/conf/seafile.conf
*
/haiwen/conf/seahub_settings.py
*
/haiwen/ccnet/mykey.peer
*
/conf/ccnet.conf
*
/conf/seafile.conf
*
/conf/seahub_settings.py
For kubernetes, the config would look like this:
...
...
@@ -49,15 +43,45 @@ metadata:
app
:
seafile
data
:
ccnet.conf
:
|-
# Your data here
seafdav.conf
:
|-
# Your data here
[General]
SERVICE_URL = http://my.domain.tld
[Database]
ENGINE = pgsql
HOST = database
PORT = 5432
USER = seafile
PASSWD = seafile
DB = ccnet
CREATE_TABLES = true
[Client]
PORT = 13419
UNIX_SOCKET = /tmp/seafile.sock
seafile.conf
:
|-
# Your data here
[fileserver]
port = 8082
[database]
type = pgsql
host = database
port = 5432
user = seafile
password = seafile
db_name = seafile
create_tables = true
seahub_settings.py
:
|-
# Your data here
seafile.ini
:
|-
# Your data here
FILE_SERVER_ROOT = 'http://my.domain.tld/seafhttp'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'seahub',
'USER': 'seafile',
'PASSWORD': 'seafile',
'HOST': 'database',
'PORT': '5432',
}
}
```
```
yaml
...
...
@@ -70,7 +94,9 @@ metadata:
app
:
seafile
data
:
mykey.peer
:
|-
-----BEGIN RSA PRIVATE KEY-----
# Your data here
-----END RSA PRIVATE KEY-----
```
```
yaml
...
...
@@ -92,7 +118,7 @@ spec:
```
yaml
kind
:
Deployment
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
metadata
:
name
:
seafile
namespace
:
default
...
...
@@ -119,54 +145,40 @@ spec:
-
name
:
key
secret
:
secretName
:
seafile-key
-
name
:
logs
emptyDir
:
{}
-
name
:
pids
-
name
:
tmp
emptyDir
:
{}
containers
:
-
name
:
se
afile
image
:
k8r.eu/justjanne/seafile:
latest
-
name
:
se
rver
image
:
k8r.eu/justjanne/seafile:
server
ports
:
-
name
:
seahub
containerPort
:
8000
protocol
:
TCP
-
name
:
seafhttp
containerPort
:
8082
protocol
:
TCP
volumeMounts
:
-
name
:
logs
mountPath
:
/haiwen/logs
-
name
:
pids
mountPath
:
/haiwen/pids
-
name
:
data
mountPath
:
/haiwen/seafile-data
subPath
:
data
-
name
:
tmp
mountPath
:
/tmp
-
name
:
data
mountPath
:
/haiwen/conf
subPath
:
config
-
name
:
data
mountPath
:
/haiwen/ccnet
subPath
:
ccnet
mountPath
:
/data
-
name
:
config
mountPath
:
/haiwen/ccnet/seafile.ini
subPath
:
seafile.ini
mountPath
:
/conf
-
name
:
key
mountPath
:
/conf/mykey.peer
subPath
:
mykey.peer
-
name
:
seahub
image
:
k8r.eu/justjanne/seafile:seahub
ports
:
-
name
:
seahub
containerPort
:
8000
protocol
:
TCP
volumeMounts
:
-
name
:
tmp
mountPath
:
/tmp
-
name
:
data
mountPath
:
/haiwen/seahub-data
subPath
:
seahub-data
mountPath
:
/data
-
name
:
config
mountPath
:
/haiwen/conf/ccnet.conf
subPath
:
ccnet.conf
-
name
:
config
mountPath
:
/haiwen/conf/seafdav.conf
subPath
:
seafdav.conf
-
name
:
config
mountPath
:
/haiwen/conf/seafile.conf
subPath
:
seafile.conf
-
name
:
config
mountPath
:
/haiwen/conf/seahub_settings.py
subPath
:
seahub_settings.py
mountPath
:
/conf
-
name
:
key
mountPath
:
/
haiwen/ccnet
/mykey.peer
mountPath
:
/
conf
/mykey.peer
subPath
:
mykey.peer
```
...
...
@@ -183,40 +195,46 @@ spec:
-
name
:
seahub
protocol
:
TCP
port
:
8000
targetPort
:
8000
targetPort
:
seahub
-
name
:
seafhttp
protocol
:
TCP
port
:
8082
targetPort
:
8082
targetPort
:
seafhttp
selector
:
app
:
seafile
type
:
ClusterIP
```
```
yaml
apiVersion
:
extensions/v1beta1
kind
:
Ingress
apiVersion
:
networking.k8s.io/v1
metadata
:
annotations
:
kubernetes.io/ingress.class
:
nginx
kubernetes.io/tls-acme
:
"
true"
ingress.kubernetes.io/proxy-body-size
:
"
0"
name
:
seafile
namespace
:
default
spec
:
ingressClassName
:
"
nginx"
rules
:
-
host
:
cloud.example.com
http
:
paths
:
-
backend
:
serviceName
:
seafile
servicePort
:
8000
path
:
/
-
backend
:
serviceName
:
seafile
servicePort
:
8082
path
:
/seafhttp
-
path
:
"
/"
pathType
:
"
Prefix"
backend
:
service
:
name
:
seafile
port
:
name
:
seahub
-
path
:
"
/seafhttp"
pathType
:
"
Prefix"
backend
:
service
:
name
:
seafile
port
:
name
:
seafhttp
tls
:
-
hosts
:
-
cloud.example.com
secretName
:
seafile-tls
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment