docker + gogs
docker run --name gogs -d -p 10022:22 -p 10080:3000 --restart=always \
-v ~/gogs:/data \
gogs/gogs
  • github
[email protected]:snowdreams1006/snowdreams1006.github.io.git
https://github.com/snowdreams1006/snowdreams1006.github.io.git
  • gogs
[email protected]:snowdreams1006/snowdreams1006.github.io.git
https://gogs.snowdreams1006.cn/snowdreams1006/snowdreams1006.github.io.git
./gogs cert -ca=true -duration=8760h0m0s -host=gogs.snowdreams1006.cn
docker cp gogs:$(docker exec gogs pwd)/cert.pem gogs/https
Copy link