mirror of
				https://asciireactor.com/otho/industry-website.git
				synced 2025-10-30 16:28:02 +00:00 
			
		
		
		
	Move DNS to dns project and update gitignore.
This commit is contained in:
		
							parent
							
								
									1a1eee57eb
								
							
						
					
					
						commit
						747a45e349
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -3,3 +3,4 @@ vhost.d | |||||||
| .terraform | .terraform | ||||||
| .env | .env | ||||||
| .cache | .cache | ||||||
|  | .terraform.lock.hcl | ||||||
|  | |||||||
							
								
								
									
										68
									
								
								main.tf
									
									
									
									
									
								
							
							
						
						
									
										68
									
								
								main.tf
									
									
									
									
									
								
							| @ -1,68 +0,0 @@ | |||||||
| resource "namecheap_domain_records" "top" { |  | ||||||
|     domain = "othoulrich.com" |  | ||||||
|     mode   = "MERGE" |  | ||||||
| 
 |  | ||||||
|     record { |  | ||||||
|         address  = "otho.boxgraph.net." |  | ||||||
|         hostname = "code" |  | ||||||
|         mx_pref  = 10 |  | ||||||
|         ttl      = 1799 |  | ||||||
|         type     = "CNAME" |  | ||||||
|     } |  | ||||||
|     record { |  | ||||||
|         address  = "othoulrich.com." |  | ||||||
|         hostname = "www" |  | ||||||
|         mx_pref  = 10 |  | ||||||
|         ttl      = 1799 |  | ||||||
|         type     = "CNAME" |  | ||||||
|     } |  | ||||||
|     record { |  | ||||||
|         address  = "otho.boxgraph.net." |  | ||||||
|         hostname = "@" |  | ||||||
|         mx_pref  = 10 |  | ||||||
|         ttl      = 1799 |  | ||||||
|         type     = "CNAME" |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| terraform { |  | ||||||
|   required_providers { |  | ||||||
|     namecheap = { |  | ||||||
|       source = "namecheap/namecheap" |  | ||||||
|       version = "~> 2.1.0" |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
|   backend "http" { |  | ||||||
|     address        = "https://asciireactor.com/api/v4/projects/101/terraform/state/app" |  | ||||||
|     lock_address   = "https://asciireactor.com/api/v4/projects/101/terraform/state/app/lock" |  | ||||||
|     unlock_address = "https://asciireactor.com/api/v4/projects/101/terraform/state/app/lock" |  | ||||||
|     lock_method    = "POST" |  | ||||||
|     unlock_method  = "DELETE" |  | ||||||
|     retry_wait_min = 5 |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| provider "namecheap" { |  | ||||||
|     user_name   = var.dns_user_name |  | ||||||
|     api_user    = var.dns_api_user |  | ||||||
|     api_key     = var.dns_api_key |  | ||||||
|     use_sandbox = var.use_dns_sandbox |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| variable use_dns_sandbox { |  | ||||||
|     type = bool |  | ||||||
|     default = false |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| variable dns_user_name { |  | ||||||
|     type = string |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| variable dns_api_user { |  | ||||||
|     type = string |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| variable dns_api_key { |  | ||||||
|     type = string |  | ||||||
| } |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user