Remove cgit landing pages
I can use an org to make the URLs in gitea slightly nicer, which will do for now
This commit is contained in:
parent
17f5aa921b
commit
4f5a99263f
4 changed files with 3 additions and 65 deletions
|
@ -15,7 +15,7 @@ TEMP_PATH = /data/gitea/uploads
|
|||
APP_DATA_PATH = /data/gitea
|
||||
SSH_DOMAIN = git.0rng.one
|
||||
HTTP_PORT = 3000
|
||||
ROOT_URL = https://git.0rng.one/gitea/
|
||||
ROOT_URL = https://git.0rng.one/
|
||||
DISABLE_SSH = false
|
||||
SSH_PORT = 22
|
||||
SSH_LISTEN_PORT = 3022
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
#
|
||||
# cgit config
|
||||
#
|
||||
|
||||
css=/cgit.css
|
||||
logo=/cgit.png
|
||||
source-filter=/bin/syntax-highlighting.sh
|
||||
virtual-root=/
|
||||
mimetype-file=/etc/mime.types
|
||||
robots=noindex, nofollow
|
||||
include=/config/repos.txt
|
|
@ -10,12 +10,10 @@ services:
|
|||
- USER_GID={{ docker_user.id }}
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.gitea.rule=(Host(`git.theorangeone.net`) || Host(`git.0rng.one`)) && PathPrefix(`/gitea`)"
|
||||
- "traefik.http.routers.gitea.rule=(Host(`git.theorangeone.net`) || Host(`git.0rng.one`))"
|
||||
- "traefik.http.routers.gitea.tls=true"
|
||||
- "traefik.http.routers.gitea.tls.certresolver=le"
|
||||
- "traefik.http.services.gitea-gitea.loadbalancer.server.port=3000"
|
||||
- "traefik.http.middlewares.gitea-strip.stripprefix.prefixes=/gitea"
|
||||
- "traefik.http.routers.gitea.middlewares=gitea-strip"
|
||||
ports:
|
||||
- "{{ wireguard.clients.intersect.ip }}:3022:3022"
|
||||
volumes:
|
||||
|
@ -47,30 +45,3 @@ services:
|
|||
- POSTGRES_DB=gitea
|
||||
- BACKUP_KEEP_MONTHS=1
|
||||
- BACKUP_KEEP_WEEKS=1
|
||||
|
||||
cgit:
|
||||
image: theorangeone/docker-cgit:latest
|
||||
container_name: cgit
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- USER_UID={{ docker_user.id }}
|
||||
- USER_GID={{ docker_user.id }}
|
||||
volumes:
|
||||
- ./repos:/data/git:ro
|
||||
- ./cgit/cgitrc:/config/cgitrc:ro
|
||||
- ./cgit/repos.txt:/config/repos.txt:ro
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.cgit.rule=Host(`git.theorangeone.net`) || Host(`git.0rng.one`)"
|
||||
- "traefik.http.routers.cgit.tls=true"
|
||||
- "traefik.http.routers.cgit.tls.certresolver=le"
|
||||
|
||||
gitea-cgit-adapter:
|
||||
image: theorangeone/gitea-cgit-adapter:latest
|
||||
restart: unless-stopped
|
||||
command: /app/gitea-cgit-adapter /etc/gitea.ini /etc/cgit-repos.txt --interval 600
|
||||
depends_on:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./gitea/gitea/conf/app.ini:/etc/gitea.ini:ro
|
||||
- ./cgit/repos.txt:/etc/cgit-repos.txt
|
||||
|
|
|
@ -16,13 +16,6 @@
|
|||
mode: "{{ docker_compose_directory_mask }}"
|
||||
become: true
|
||||
|
||||
- name: Create cgit config directory
|
||||
file:
|
||||
path: /opt/gitea/cgit
|
||||
state: directory
|
||||
mode: "{{ docker_compose_directory_mask }}"
|
||||
become: true
|
||||
|
||||
- name: Install gitea compose file
|
||||
template:
|
||||
src: files/gitea/docker-compose.yml
|
||||
|
@ -42,21 +35,6 @@
|
|||
register: gitea_config_file
|
||||
become: true
|
||||
|
||||
- name: Install cgit config file
|
||||
template:
|
||||
src: files/gitea/cgitrc
|
||||
dest: /opt/gitea/cgit/cgitrc
|
||||
mode: "{{ docker_compose_file_mask }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
register: cgit_config_file
|
||||
become: true
|
||||
|
||||
- name: Touch public repos file
|
||||
file:
|
||||
path: /opt/gitea/cgit/repos.txt
|
||||
state: file
|
||||
become: true
|
||||
|
||||
- name: Cycle gitea container
|
||||
docker_compose:
|
||||
project_src: /opt/gitea
|
||||
|
@ -64,7 +42,7 @@
|
|||
remove_orphans: true
|
||||
remove_volumes: true
|
||||
state: "{{ item }}"
|
||||
when: compose_file.changed or gitea_config_file.changed or cgit_config_file.changed
|
||||
when: compose_file.changed or gitea_config_file.changed
|
||||
loop:
|
||||
- absent
|
||||
- present
|
||||
|
|
Loading…
Reference in a new issue