mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Parameterize database, repositories, LFS, and log locations
This commit is contained in:
		
							parent
							
								
									dec10f2ea1
								
							
						
					
					
						commit
						e45d73cacf
					
				
					 2 changed files with 12 additions and 4 deletions
				
			
		|  | @ -44,5 +44,13 @@ gitea_full_url: "http://{{ iiab_hostname }}.{{ iiab_domain }}{{ gitea_url }}" | |||
| 
 | ||||
| gitea_port: 61734 # leet for GITEA | ||||
| 
 | ||||
| # Data locations | ||||
| gitea_db_path: "{{ gitea_root_directory }}/data/gitea.db" | ||||
| gitea_repo_root: "{{ gitea_root_directory }}/data/repositories" | ||||
| gitea_lfs_root: "{{ gitea_root_directory }}/data/lfs" | ||||
| 
 | ||||
| # Log file location | ||||
| gitea_log_root: "{{ gitea_root_directory }}/log" | ||||
| 
 | ||||
| # Extra configuration | ||||
| gitea_display_name: Internet-in-a-Box Gitea | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ RUN_USER = {{ gitea_user }} | |||
| RUN_MODE = dev | ||||
| 
 | ||||
| [repository] | ||||
| ROOT = | ||||
| ROOT = {{ gitea_repo_root }} | ||||
| SCRIPT_TYPE = bash | ||||
| ; Default ANSI charset | ||||
| ANSI_CHARSET = | ||||
|  | @ -202,7 +202,7 @@ LANDING_PAGE = home | |||
| ; Enables git-lfs support. true or false, default is false. | ||||
| LFS_START_SERVER = false | ||||
| ; Where your lfs files reside, default is data/lfs. | ||||
| LFS_CONTENT_PATH = data/lfs | ||||
| LFS_CONTENT_PATH = {{ gitea_lfs_root }} | ||||
| ; LFS authentication secret, change this yourself | ||||
| LFS_JWT_SECRET = | ||||
| ; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail. | ||||
|  | @ -227,7 +227,7 @@ PASSWD = | |||
| ; For MySQL, either "false" (default), "true", or "skip-verify" | ||||
| SSL_MODE = disable | ||||
| ; For "sqlite3" and "tidb", use an absolute path when you start gitea as service | ||||
| PATH = {{ gitea_root_directory }}/data/gitea.db | ||||
| PATH = {{ gitea_db_path }} | ||||
| ; For "sqlite3" only. Query timeout | ||||
| SQLITE_TIMEOUT = 500 | ||||
| ; For iterate buffer, default is 50 | ||||
|  | @ -461,7 +461,7 @@ MAX_FILES = 5 | |||
| FORMAT = | ||||
| 
 | ||||
| [log] | ||||
| ROOT_PATH = | ||||
| ROOT_PATH = {{ gitea_log_root }} | ||||
| ; Either "console", "file", "conn", "smtp" or "database", default is "console" | ||||
| ; Use comma to separate multiple modes, e.g. "console, file" | ||||
| MODE = console | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue