feat: PUBLIC_URL
This commit is contained in:
		
							parent
							
								
									f03984f9d0
								
							
						
					
					
						commit
						a487a22ee5
					
				
					 4 changed files with 5 additions and 2 deletions
				
			
		
							
								
								
									
										1
									
								
								.env
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								.env
									
										
									
									
									
								
							|  | @ -1,4 +1,5 @@ | ||||||
| PROD_URL=matrix.gmoker.com | PROD_URL=matrix.gmoker.com | ||||||
|  | PUBLIC_URL=gmoker.com | ||||||
| IMAGEAPP=ghcr.io/element-hq/synapse:v1.106.0 | IMAGEAPP=ghcr.io/element-hq/synapse:v1.106.0 | ||||||
| 
 | 
 | ||||||
| TURN_URL=turn.test.gmoker.com | TURN_URL=turn.test.gmoker.com | ||||||
|  |  | ||||||
|  | @ -15,6 +15,7 @@ jobs: | ||||||
|           fi |           fi | ||||||
|           cat <<EOF >> .env |           cat <<EOF >> .env | ||||||
|           BASE_URL="$BASE_URL" |           BASE_URL="$BASE_URL" | ||||||
|  |           PUBLIC_URL="${PUBLIC_URL:-$BASE_URL}" | ||||||
|           EOF |           EOF | ||||||
|           cat .env |           cat .env | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,4 +1,5 @@ | ||||||
| server_name: "$BASE_URL" | server_name: "$BASE_URL" | ||||||
|  | public_baseurl: "$PUBLIC_URL" | ||||||
| pid_file: /homeserver.pid | pid_file: /homeserver.pid | ||||||
| web_client: false | web_client: false | ||||||
| soft_file_limit: 0 | soft_file_limit: 0 | ||||||
|  |  | ||||||
|  | @ -10,9 +10,9 @@ spec: | ||||||
|   tls: |   tls: | ||||||
|     - secretName: tls-delegation |     - secretName: tls-delegation | ||||||
|       hosts: |       hosts: | ||||||
|         - gmoker.com |         - "$PUBLIC_URL" | ||||||
|   rules: |   rules: | ||||||
|     - host: gmoker.com |     - host: "$PUBLIC_URL" | ||||||
|       http: |       http: | ||||||
|         paths: |         paths: | ||||||
|           - path: /.well-known/matrix/server |           - path: /.well-known/matrix/server | ||||||
|  |  | ||||||
		Reference in a new issue