1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
docker run -d \
--name nextcloud \
-p 2000:80 \
-v /etc/localtime:/etc/localtime:ro \
-v nextcloud:/var/www/html \
--restart=always \
nextcloud

#podman
podman run -d \
--name nextcloud \
-p 2000:80 \
-v /etc/localtime:/etc/localtime:ro \
-v nextcloud:/var/www/html \
nextcloud

home-port: 63585

nginx代理nextcloud时, nextcloud需要配置

1
2
3
4
'overwritehost'     => 'xxx.wiloon.com',
'overwriteprotocol' => 'https',
'overwritewebroot'  => '/',
'overwritecondaddr' => '^127\.0\.0\.1$',