Gogs

部署gogs本地私有Git代码仓库

依然范特西╮ 提交于 2020-01-19 21:28:53
最近真是对github的速度无语了…还是用自己的服务器跑一个私有的吧,发现了 gogs 这个神器,记录一下部署过程 环境准备 CentOS 7.7 1908 MariaDB 10.4.11 git 从github上下载gogs最新版本的 linux_amd64.tar.gz https://github.com/gogs/gogs/releases 开怼 # tar -zxvf linux_amd64.tar.gz # ./gogs/gogs web 是的…解压后就这一条命令跑起来就行了 小坑一处 跑起来后默认web端口是 3000 ,配一下防火墙开放就行,浏览器中打开会自动进入安装向导,这里第一坑数据库默认使用 gogs 需要自己手动创建一下,后面就没啥了 来源: CSDN 作者: 香香爹 链接: https://blog.csdn.net/lpwmm/article/details/104044217

如何搭建自己的代码托管服务器(gogs-docker搭建)

那年仲夏 提交于 2020-01-17 07:09:17
如何搭建自己的代码托管服务器(gogs-docker搭建) 创建文件夹 mkidr -p gogs cd gogs docker-compose.yaml的改写 gogs: image: docker.io/gogs/gogs:latest links: - mysql-gogs:mysql ports: - "10022:22" - "3000:3000" volumes: - /opt/docker/gogs/:/data/docker/gogs restart: always mysql-gogs: image: docker.io/mysql:8.0 ports: - "3306:3306" volumes: - ./mysql-gogs/mysql:/var/lib/mysql - ./mysql-gogs/conf.d:/etc/mysql/conf.d:rw environment: - MYSQL_DATABASE=gogs - MYSQL_USER=gogs - MYSQL_PASSWORD=gogs - MYSQL_ROOT_PASSWORD=root command: mysqld --lower_case_table_names=1 --character-set-server=utf8mb4 --collation-server=utf8mb4

GOGS secret key

本小妞迷上赌 提交于 2020-01-14 03:11:05
问题 I'm trying to integrate the Drone CI server with the GOGS Git server. There's a pretty clear document on how to do so here: http://readme.drone.io/setup/config/gogs/ ...which indicates I need the following configuration: [gogs] url = "http://gogs.drone.io" secret = "c0aaff74c060ff4a950d" Where does this secret come from? I can't seem to find it in GOGS anywhere. 回答1: That secret key " c0aaff74c060ff4a950d " seems to be the same all over the doc. In config/github, you can see that key

树莓派 3B+ 搭建gogs 服务 git服务

此生再无相见时 提交于 2020-01-09 18:53:35
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 项目首页: https://gogs.io 下载页: https://gogs.io/docs/installation/install_from_binary 下载地址: https://dl.gogs.io/0.11.91/gogs_0.11.91_raspi_armv7.tar.gz ==注意:我是用root账号登录执行所有操作的。如果使用pi账号操作,所有指令前请添加 sudo== 安装 gogs使用go语言编写,树莓派官方系统Raspbian上已经具备了基本的运行环境,官网也提供了适用于Raspberry Pi的二进制版本,因此安装相对比较简单。 把gogs_0.11.91_raspi_armv7.tar.gz上传到树莓派的目录中 1、解压 tar -vxf gogs_0.11.91_raspi_armv7.tar.gz 2、找到可执行文件 cd gogs 3、检查是否能运行 ./gogs 输出简短的帮助: root@raspberrypi:/home/pi/soft/gogs # ./gogs NAME: Gogs - A painless self-hosted Git service USAGE: gogs [global options] command [command options]

[Nginx][Gogs] Serving gogs through nginx

时间秒杀一切 提交于 2019-12-25 06:41:29
问题 I'm running through an issue setting up Gogs through Nginx on my raspberry. I just want to be able to redirect http://raspberry-ip-address:3000 to http://raspberry-ip-address/gogs. Below my nginx virtualhost conf : server { listen 80; server_name localhost; location /gogs/ { proxy_pass http://localhost:3000; } } When I go on http:// raspberry-ip-address:3000, I get the installation page from gogs -> so Gogs is runnning well. When I go on http:// raspberry-ip-address/gogs, I got a 404 Not

Docker gogs connection is refused by mysql container

懵懂的女人 提交于 2019-12-25 00:06:55
问题 I have some trouble with setting my local git repository. I am new to docker, so the problem may be naive but I still can't find it. So my idea is: I wanted to create a container with gogs (gogs/gogs image) and connect it to mysql container. To do so I have created docker-compose.yml file. version: '3' services: db: image: mysql ports: - "10023:3306" environment: - MYSQL_ROOT_PASSWORD=root! ui: image: phpmyadmin/phpmyadmin ports: - "8989:80" links: - db:mysql repo: image: gogs/gogs ports: -

docker安装frp

耗尽温柔 提交于 2019-12-24 10:51:42
docker安装frp 一. 服务端 1.1 创建frp的默认配置文件 1.2 创建启动脚本 1.3 启动 1.4 服务端执行成功 二. 客户端 2.1 win10客户端http访问web 内网服务 2.1.1 下载 2.1.2 修改`frpc.ini`配置文件 2.1.4 运行客户端 2.2 Linux客户端http访问内网web 服务 2.2.1 新建配置`frpc.ini`文件 2.2.2 创建启动脚本 2.2.3 启动 2.2.4 安装gogs测试 2.3 申请SSL证书 2.4 win10 https访问内网web服务 2.4.1 移动两个证书文件到`frp`根目录 2.4.2 修改frpc.ini 2.4.3 执行bat运行 前提:需要有一台已备案域名的云服务器 一. 服务端 源码地址 https://github.com/fatedier/frp docker镜像地址 https://github.com/snowdreamtech/frp?spm=a2c4e.10696291.0.0.4a5619a4SqlVwU 1.1 创建frp的默认配置文件 [root@master ~]# mkdir -p ~/i/apps/frp && cd ~/i/apps/frp [root@master frp]# cat <<EOF> frps.ini [common] bind

GitLab-软件项目管理和代码托管平台

六眼飞鱼酱① 提交于 2019-12-19 17:49:30
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 开源中国代码托管平台 git.oschina.net 就是基于 GitLab 项目搭建。 GitLab是一个利用 Ruby on Rails 开发的开源应用程序,实现一个自托管的 Git 项目仓库,可通过Web界面进行访问公开的或者私人项目。 它拥有与 Github 类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找。 GitLab 5.0以前版本要求服务器端采用 Gitolite 搭建,5.0版本以后不再使用 Gitolite ,采用自己开发的 gitlab-shell 来实现。如果你觉得安装麻烦可以使用 GitLab Installers 一键安装程序。 系统要求: Ubuntu/Debian ruby 1.9.3+ mysql or postgresql git gitlab-shell redis Sidekiq Gitlab 的集群解决方案 gitlabhq / gitlabhq Watch 948 Star 16900 Fork 4584 GitLab is version control for your server — More... https:/

How to import data from LDAP to gogs

余生颓废 提交于 2019-12-11 07:06:45
问题 This may be a very stupid question, but it's hard to me. I was trying to integrate LDAP server to our gogs. I followed instructions from here and here. But what next? How to import data from LDAP to gogs? I am unable to find anyway of importing data. And without importing data, the integration of no use. I have developed a helpdesk system, there I did same in PHP, but there, after integration, I got an option to test and import data from LDAP. But how to do that in Gogs? I really have no idea

Gogs + Drone getsockopt: connection refused

孤者浪人 提交于 2019-12-11 05:08:25
问题 In the Gogs/webhooks interface when i click the test delivery button i got this error; Delivery: Post http://localhost:8000/hook?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoidG9tL2Ryb255IiwidHlwZSI6Imhvb2sifQ.UZdOVW2IdiDcLQzKcnlmlAxkuA8GTZBH634G0K7rggI: dial tcp [::1]:8000: getsockopt: connection refused This is my docker-compose.yml file version: '2' services: gogs: image: gogs/gogs ports: - 3000:3000 - 22:22 links: - mysql mysql: image: mysql expose: - 3306 environment: -