新增大量内容
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
version: '2'
|
||||
services:
|
||||
postgresql:
|
||||
image: docker.io/bitnami/postgresql:15
|
||||
volumes:
|
||||
- '/data/gitea/postgresql_data/:/bitnami/postgresql'
|
||||
environment:
|
||||
- POSTGRESQL_DATABASE=gitea_db
|
||||
- POSTGRESQL_USERNAME=bn_gitea
|
||||
- POSTGRESQL_PASSWORD=Superwdd.12
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
gitea:
|
||||
image: docker.io/bitnami/gitea:1.24.5-debian-12-r0
|
||||
volumes:
|
||||
- '/data/gitea/gitea_data:/bitnami/gitea'
|
||||
environment:
|
||||
- GITEA_DATABASE_HOST=postgresql
|
||||
- GITEA_DATABASE_NAME=gitea_db
|
||||
- GITEA_DATABASE_USERNAME=bn_gitea
|
||||
- GITEA_DATABASE_PASSWORD=Superwdd.12
|
||||
- GITEA_ADMIN_USER=zeaslity
|
||||
- GITEA_ADMIN_PASSWORD=lovemm.23
|
||||
- GITEA_ADMIN_EMAIL=wdd@107421.xyz
|
||||
- GITEA_HTTP_PORT=3000
|
||||
# - GITEA_DOMAIN=gitea.107421.xyz
|
||||
# - GITEA_ROOT_URL=gitea.107421.xyz
|
||||
- GITEA_SSH_LISTEN_PORT=22222
|
||||
- ARCHIVE_CLEANUP_ENABLED = true
|
||||
- ARCHIVE_CLEANUP_TIMEOUT = 168h #设置归档文件过期时间(默认7天)
|
||||
ports:
|
||||
- '3000:3000'
|
||||
- '22222:22222'
|
||||
40
0-部署应用/Tokyo-arm64-01/自建代码仓库-gitea/个人代码仓库反向代理.conf
Normal file
40
0-部署应用/Tokyo-arm64-01/自建代码仓库-gitea/个人代码仓库反向代理.conf
Normal file
@@ -0,0 +1,40 @@
|
||||
server {
|
||||
server_name gitea.107421.xyz;
|
||||
listen 80 ;
|
||||
return 301 https://gitea.107421.xyz$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name gitea.107421.xyz;
|
||||
|
||||
ssl_certificate /etc/nginx/conf.d/ssl_key/gitea.107421.xyz.cert.pem;
|
||||
ssl_certificate_key /etc/nginx/conf.d/ssl_key/gitea.107421.xyz.key.pem;
|
||||
ssl_session_timeout 1d;
|
||||
ssl_session_cache shared:MozSSL:10m;
|
||||
ssl_session_tickets off;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
ssl_prefer_server_ciphers off;
|
||||
|
||||
location / {
|
||||
access_log /var/log/nginx/access.log main;
|
||||
client_max_body_size 5120m;
|
||||
client_body_buffer_size 5120m;
|
||||
client_body_timeout 6000s;
|
||||
proxy_send_timeout 10000s;
|
||||
proxy_read_timeout 10000s;
|
||||
proxy_connect_timeout 600s;
|
||||
proxy_max_temp_file_size 5120m;
|
||||
proxy_request_buffering on;
|
||||
proxy_buffering off;
|
||||
proxy_buffer_size 4k;
|
||||
proxy_buffers 4 12k;
|
||||
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://150.230.198.103:3000;
|
||||
}
|
||||
|
||||
}
|
||||
13
0-部署应用/Tokyo-arm64-01/自建代码仓库-gitea/个人代码仓库证书申请.sh
Normal file
13
0-部署应用/Tokyo-arm64-01/自建代码仓库-gitea/个人代码仓库证书申请.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
export DOMAIN_NAME=gitea.107421.xyz
|
||||
|
||||
export CF_Token="oXJRP5XI8Zhipa_PtYtB_jy6qWL0I9BosrJEYE8p"
|
||||
export CF_Account_ID="dfaadeb83406ef5ad35da02617af9191"
|
||||
export CF_Zone_ID="511894a4f1357feb905e974e16241ebb"
|
||||
|
||||
acme.sh --issue --dns dns_cf -d ${DOMAIN_NAME} --keylength ec-256
|
||||
acme.sh --install-cert -d ${DOMAIN_NAME} --ecc \
|
||||
--key-file /etc/nginx/conf.d/ssl_key/${DOMAIN_NAME}.key.pem \
|
||||
--fullchain-file /etc/nginx/conf.d/ssl_key/${DOMAIN_NAME}.cert.pem \
|
||||
--reloadcmd "systemctl restart nginx --force"
|
||||
@@ -0,0 +1,34 @@
|
||||
# https://hub.docker.com/r/bitnami/gitea
|
||||
|
||||
version: '2'
|
||||
services:
|
||||
postgresql:
|
||||
image: docker.io/bitnami/postgresql:15
|
||||
volumes:
|
||||
- '/data/gitea/postgresql_data/:/bitnami/postgresql'
|
||||
environment:
|
||||
- POSTGRESQL_DATABASE=gitea_db
|
||||
- POSTGRESQL_USERNAME=bn_gitea
|
||||
- POSTGRESQL_PASSWORD=SuperWdd.123
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
gitea:
|
||||
image: docker.io/bitnami/gitea:1.19.3-debian-11-r0
|
||||
volumes:
|
||||
- '/data/gitea/gitea_data:/bitnami/gitea'
|
||||
environment:
|
||||
- GITEA_DATABASE_HOST=postgresql
|
||||
- GITEA_DATABASE_NAME=gitea_db
|
||||
- GITEA_DATABASE_USERNAME=bn_gitea
|
||||
- GITEA_DATABASE_PASSWORD=SuperWdd.123
|
||||
- GITEA_ADMIN_USER=wdd
|
||||
- GITEA_ADMIN_PASSWORD=SuperWdd.123
|
||||
- GITEA_ADMIN_EMAIL=wdd@cmii.com
|
||||
- GITEA_HTTP_PORT=3000
|
||||
- GITEA_SSH_LISTEN_PORT=22222
|
||||
- GITEA_APP_NAME=Gitea-闲下来就喝杯茶吧
|
||||
- GITEA_DOMAIN=192.168.35.70
|
||||
- GITEA_PROTOCOL=http
|
||||
- GITEA_RUN_MODE=prod
|
||||
ports:
|
||||
- '3000:3000'
|
||||
- '22222:22222'
|
||||
Reference in New Issue
Block a user