feature: Added https support to traefik
This commit is contained in:
		
							
								
								
									
										6
									
								
								certs/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								certs/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
Drop in directory for certificates.
 | 
			
		||||
You can generate the necessary certs with:
 | 
			
		||||
 | 
			
		||||
``` shell
 | 
			
		||||
openssl req -x509 -newkey rsa:4096 -keyout certs/traefik.key -out certs/treafik.crt -days 365
 | 
			
		||||
```
 | 
			
		||||
@@ -9,11 +9,14 @@ services:
 | 
			
		||||
      - --entrypoints.web.address=:80
 | 
			
		||||
      - --entrypoints.web-secure.address=:443
 | 
			
		||||
      - --providers.docker=true
 | 
			
		||||
      - --providers.file.directory=/etc/traefik/dynamic_conf
 | 
			
		||||
    ports:
 | 
			
		||||
      - 80:80
 | 
			
		||||
      - 443:443
 | 
			
		||||
      - 8080:8080
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ../certs:/tools/certs
 | 
			
		||||
      - ./traefik.yml:/etc/traefik/dynamic_conf/traefik.yml:ro
 | 
			
		||||
      - /var/run/docker.sock:/var/run/docker.sock:ro
 | 
			
		||||
      - ../auth/:/auth
 | 
			
		||||
    extra_hosts:
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								dktk-fed/traefik.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								dktk-fed/traefik.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
tls:
 | 
			
		||||
  certificates:
 | 
			
		||||
    - certFile: /tools/certs/traefik.crt
 | 
			
		||||
      keyFile: /tools/certs/traefik.key
 | 
			
		||||
		Reference in New Issue
	
	Block a user