You've already forked gitea
							
							Compare commits
	
		
			4 Commits
		
	
	
		
			9320847167
			...
			feature-au
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 550459b77f | |||
| ff9bb06bfd | |||
| ebe0f41dcf | |||
| 4f772aee34 | 
							
								
								
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,2 +1,3 @@ | |||||||
| .env | /.env | ||||||
| gitea_data | /ansible/inventory.ini | ||||||
|  | /data | ||||||
|   | |||||||
| @@ -1,6 +1,4 @@ | |||||||
| # git.bjphoster.com | # Gitea Deployment | ||||||
|  |  | ||||||
| Deploy for Gitea service |  | ||||||
|  |  | ||||||
| ## Notes: | ## Notes: | ||||||
| Create `gitea_data/gitea/conf` directory first and copy `app.example.ini` inside that and rename it `app.ini` (or let Gitea do that first and overwrite it) | Create `gitea_data/gitea/conf` directory first and copy `app.example.ini` inside that and rename it `app.ini` (or let Gitea do that first and overwrite it) | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								ansible/ansible.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								ansible/ansible.cfg
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | [defaults] | ||||||
|  | nocows = True | ||||||
|  | inventory = ./inventory.ini | ||||||
|  | interpreter_python = auto_silent | ||||||
							
								
								
									
										2
									
								
								ansible/example.inventory.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ansible/example.inventory.ini
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | |||||||
|  | [gitea] | ||||||
|  | 192.168.1.10 ansible_user=root | ||||||
							
								
								
									
										6
									
								
								ansible/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								ansible/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | |||||||
|  | --- | ||||||
|  | - hosts: all | ||||||
|  |   become: true | ||||||
|  |   tasks: | ||||||
|  |     - name: Setup Linux user and group | ||||||
|  |       import_tasks: tasks/user.yml | ||||||
							
								
								
									
										20
									
								
								ansible/tasks/user.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								ansible/tasks/user.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | |||||||
|  | --- | ||||||
|  | - name: Ensure a Linux group "git" exists | ||||||
|  |   ansible.builtin.group: | ||||||
|  |     state: present | ||||||
|  |     name: git | ||||||
|  |     system: no | ||||||
|  |     uid: "{{ GIT_USER_GID }}" | ||||||
|  | - name: Ensure a Linux user "git" exists | ||||||
|  |   ansible.builtin.user: | ||||||
|  |     state: present | ||||||
|  |     name: git | ||||||
|  |     group: git | ||||||
|  |     password: "!" | ||||||
|  |     comment: "Gitea" | ||||||
|  |     system: no | ||||||
|  |     uid: "{{ GIT_USER_UID }}" | ||||||
|  |     create_home: no | ||||||
|  |     generate_ssh_key: yes | ||||||
|  |     ssh_key_bits: 4096 | ||||||
|  |     ssh_key_comment: "Gitea Host Key" | ||||||
| @@ -33,7 +33,7 @@ services: | |||||||
|     volumes: |     volumes: | ||||||
|       - /etc/localtime:/etc/localtime:ro |       - /etc/localtime:/etc/localtime:ro | ||||||
|       - /etc/timezone:/etc/timezone:ro |       - /etc/timezone:/etc/timezone:ro | ||||||
|       - ./gitea_data:/data |       - ./data/gitea:/data | ||||||
|       - ${GIT_HOMEDIR}/.ssh:/data/git/.ssh |       - ${GIT_HOMEDIR}/.ssh:/data/git/.ssh | ||||||
|     ports: |     ports: | ||||||
|       - ${SSH_PORT}:22 |       - ${SSH_PORT}:22 | ||||||
| @@ -49,12 +49,9 @@ services: | |||||||
|       - internal |       - internal | ||||||
|     restart: unless-stopped |     restart: unless-stopped | ||||||
|     volumes: |     volumes: | ||||||
|       - database:/var/lib/mysql |       - ./data/mysql:/var/lib/mysql | ||||||
|  |  | ||||||
| networks: | networks: | ||||||
|   internal: |   internal: | ||||||
|   traefik-proxy: |   traefik-proxy: | ||||||
|     external: true |     external: true | ||||||
|  |  | ||||||
| volumes: |  | ||||||
|   database: |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user