updates index.html
This commit is contained in:
		
							parent
							
								
									73276a3a9e
								
							
						
					
					
						commit
						439eaee8d5
					
				
					 2 changed files with 60 additions and 1 deletions
				
			
		| 
						 | 
					@ -1 +1,3 @@
 | 
				
			||||||
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Aperture_Laboratories_Logo.svg/2560px-Aperture_Laboratories_Logo.svg.png" />
 | 
					<img
 | 
				
			||||||
 | 
					  src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Aperture_Laboratories_Logo.svg/2560px-Aperture_Laboratories_Logo.svg.png"
 | 
				
			||||||
 | 
					  style="width: 100%; height: auto;" />
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										57
									
								
								nginx/nginx.hcl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								nginx/nginx.hcl
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,57 @@
 | 
				
			||||||
 | 
					job "nginx" {
 | 
				
			||||||
 | 
					  datacenters = ["aperture"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  type = "service"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  group "web" {
 | 
				
			||||||
 | 
					    count = 5
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    network {
 | 
				
			||||||
 | 
					      port "http" {
 | 
				
			||||||
 | 
					        to = "80"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      port "https" {
 | 
				
			||||||
 | 
					        to = "443"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    service {
 | 
				
			||||||
 | 
					      port = "http"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      check {
 | 
				
			||||||
 | 
					        type = "http"
 | 
				
			||||||
 | 
					        path = "/"
 | 
				
			||||||
 | 
					        interval = "10s"
 | 
				
			||||||
 | 
					        timeout = "2s"
 | 
				
			||||||
 | 
					      } 
 | 
				
			||||||
 | 
					      tags = [
 | 
				
			||||||
 | 
					        "traefik.enable=true",
 | 
				
			||||||
 | 
					        "traefik.http.routers.nginx.rule=Host(`aperture.redbrick.dcu.ie`)",   
 | 
				
			||||||
 | 
					        "traefik.http.routers.nginx.entrypoints=web,websecure",
 | 
				
			||||||
 | 
					        #"traefik.port=${NOMAD_PORT_http}"
 | 
				
			||||||
 | 
					      ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    task "frontend" {
 | 
				
			||||||
 | 
					      driver = "docker"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      config {
 | 
				
			||||||
 | 
					        image = "nginx"
 | 
				
			||||||
 | 
					        ports = ["http", "https"]
 | 
				
			||||||
 | 
					        volumes = [
 | 
				
			||||||
 | 
					          "local/index.html:/usr/share/nginx/html/index.html",
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      artifact {
 | 
				
			||||||
 | 
					        source = "https://raw.githubusercontent.com/redbrick/nomad/master/nginx/index.html"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      template {
 | 
				
			||||||
 | 
					        source = "local/index.html"
 | 
				
			||||||
 | 
					        destination = "local/index.html"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in a new issue