首页
工具
友链
推荐
下载站
网盘
物理专用站
Search
1
群晖 docker安装qbittorrent 解决下载时错误
9,807 阅读
2
详细的全自动追番教程:Sonarr+Jackett+qBittorrent+Jellyfin+Jellyseerr
9,025 阅读
3
OpenWrt (R2S) ipv6配置
3,906 阅读
4
proxmox ve 启动arm虚拟机 (ubuntu arm)
3,521 阅读
5
proxmox ve省电小技巧
2,608 阅读
默认分类
管理
记录
计算机
ACGN
游戏
讯息
数理
登录
Search
标签搜索
docker
刷机
ipv6
wsl
pve
番剧
openwrt
配置
gitlab
汉化
jupyterhub
pixel slate
chromeos
小爱同学
自定义音色
dns
oracle
甲骨文
原神
云原神
Canoziia
累计撰写
66
篇文章
累计收到
33
条评论
首页
栏目
默认分类
管理
记录
计算机
ACGN
游戏
讯息
数理
页面
工具
友链
推荐
下载站
网盘
物理专用站
搜索到
1
篇与
的结果
2020-02-23
gitlab docker 安装和汉化
首先先查找最新汉化包https://gitlab.com/xhang/gitlab/现在是12.3.5所以下载运行相应docker:sudo docker run --detach \ --hostname gitlab-server \ --publish 443:82 --publish 80:84 --publish 22:8022 \ --name gitlab \ --restart always \ --volume /srv/gitlab/config:/etc/gitlab \ --volume /srv/gitlab/logs:/var/log/gitlab \ --volume /srv/gitlab/data:/var/opt/gitlab \ gitlab/gitlab-ee:12.3.5-ee.0`(为了https)然后编辑配置文件vim /srv/gitlab/config/gitlab.rbexternal_url 'https://git.dnlab.net' gitlab_rails['gitlab_shell_ssh_port'] = 8022 nginx['redirect_http_to_https'] =true nginx['ssl_certificate'] = "/etc/gitlab/ssl/server.crt" nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/server.key" gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.office365.com" gitlab_rails['smtp_port'] = 587 gitlab_rails['smtp_user_name'] = "canoziia@dnlab.net" gitlab_rails['smtp_password'] = "********" gitlab_rails['smtp_domain'] = "smtp.office365.com" gitlab_rails['smtp_authentication'] = :login #gitlab_rails['smtp_enable_starttls_auto'] = true #gitlab_rails['smtp_tls'] = true gitlab_rails['gitlab_email_from'] = "canoziia@dnlab.net"`https自签名方法:修改配置文件xieshuang@VM_177_101_centos gitlab]$ sudo vim /etc/gitlab/gitlab.rb #13行的 http >> https external_url 'https://ip:port' #修改nginx配置 810行 nginx['redirect_http_to_https'] =true nginx['ssl_certificate'] = "/etc/gitlab/ssl/server.crt" nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/server.key"生成秘钥与证书#秘钥脚本,将以下内容保存为shell脚本,然后运行 #出现提示输入信息的地方输入信息,先输入域名然后4次证书密码,任意密码,四次保持一致。 #!/bin/sh`` #create self-signed server certificate: read -p "Enter your domain [139.199.125.93]: " DOMAIN echo "Create server key..." openssl genrsa -des3 -out $DOMAIN.key 1024 echo "Create server certificate signing request..." SUBJECT="/C=US/ST=Mars/L=iTranswarp/O=iTranswarp/OU=iTranswarp/CN=$DOMAIN" openssl req -new -subj $SUBJECT -key $DOMAIN.key -out $DOMAIN.csr echo "Remove password..." mv $DOMAIN.key $DOMAIN.origin.key openssl rsa -in $DOMAIN.origin.key -out $DOMAIN.key echo "Sign SSL certificate..." openssl x509 -req -days 3650 -in $DOMAIN.csr -signkey $DOMAIN.key -out $DOMAIN.crt echo "TODO:" echo "Copy $DOMAIN.crt to /etc/nginx/ssl/$DOMAIN.crt" echo "Copy $DOMAIN.key to /etc/nginx/ssl/$DOMAIN.key" echo "Add configuration in nginx:" echo "server {" echo " ..." echo " listen 443 ssl;" echo " ssl_certificate /etc/nginx/ssl/$DOMAIN.crt;" echo " ssl_certificate_key /etc/nginx/ssl/$DOMAIN.key;" echo "}" #执行成功后生成文件如下: [xieshuang@VM_177_101_centos src]$ ls 139.199.125.93.crt 139.199.125.93.origin.key nginx-1.7.12 vim-7.3.tar.bz2 139.199.125.93.csr apache-tomcat-8.5.28.tar.gz ssl_genKey.sh vimcdoc-1.8.0 139.199.125.93.key gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm vim73 vimcdoc-1.8.0.tar.gz #移动到相应的位置 sudo mkdir -p /etc/gitlab/ssl sudo chmod 700 /etc/gitlab/ssl/ -R su cp 139.199.125.93.crt /etc/gitlab/ssl/server.crt sudo cp 139.199.125.93.key /etc/gitlab/ssl/server.key重建配置gitlab-ctl reconfigure重启容器,即可登录设置密码之类的然后汉化:#进入容器 docker exec -it gitlab /bin/bash #停止gitlab gitlab-ctl stop $pwd=/root/temp wget https://gitlab.com/xhang/gitlab/-/archive/12-3-stable-zh/gitlab-12-3-stable-zh.zip unzip gitlab-12-3-stable-zh.zip #覆盖语言文件 cp -rf gitlab-12-3-stable-zh.zip/* /opt/gitlab/embedded/service/gitlab-rails/ #清理临时文件(?抄来的据说必须) rm -rf /opt/gitlab/embedded/nodes/* #启动服务 gitlab-ctl start然后在右上角-设置-preference更改语言为中文基本都汉化了https://www.cnblogs.com/xieshuang/p/8488458.htmldocker设置语言中文:https://blog.csdn.net/llllllloooooo/article/details/102852027nginx['redirect_http_to_https'] =true这一行改成false 然后可以用frpc把内网http穿透到公网,再用frps上的nginx反代成httpsfrps的https穿透加nginx反代从来没成功过再加一个qq smtp配置(咕咕咕)docker ipv6: /etc/docker/daemon.json{ "ipv6": true, "fixed-cidr-v6": "fd00:daad:beee::/48" }升级最新14.0.2后提交设置保存出现500,参考https://blog.csdn.net/strut/article/details/110927126
2020年02月23日
548 阅读
1 评论
1 点赞