🚀 deploy with https
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
		
							parent
							
								
									6f1db8b64a
								
							
						
					
					
						commit
						dbc8dcfb1e
					
				
					 2 changed files with 12 additions and 3 deletions
				
			
		|  | @ -20,3 +20,13 @@ services: | |||
|     image: helseveileder | ||||
|     depends_on: | ||||
|       - postgres | ||||
|   nginx: | ||||
|     image: nginx:latest | ||||
|     ports: | ||||
|       - 80:80 | ||||
|       - 443:443 | ||||
|     volumes: | ||||
|       - ./nginx/conf:/etc/nginx/conf.d | ||||
|       - ./certs:/etc/nginx/certs:ro | ||||
|     depends_on: | ||||
|       - ginapi | ||||
|  |  | |||
|  | @ -1,15 +1,14 @@ | |||
| server { | ||||
|     listen 443 ssl; | ||||
|     server_name status-api.cloudprovider.info; | ||||
|     server_name helseundersokelsen.no; | ||||
| 
 | ||||
|     #    ssl_certificate /etc/nginx/certs/your_domain.crt; | ||||
|     #    ssl_certificate_key /etc/nginx/certs/your_domain.key; | ||||
|     ssl_certificate /etc/nginx/certs/fullchain.pem; | ||||
|     ssl_certificate_key /etc/nginx/certs/privkey.pem; | ||||
| 
 | ||||
| 
 | ||||
|     location / { | ||||
|         proxy_pass http://ginapi:8000; | ||||
|         proxy_pass http://ginapi:8080; | ||||
|         proxy_set_header Host $host; | ||||
|         proxy_set_header X-Real-IP $remote_addr; | ||||
|         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||||
|  |  | |||
		Reference in a new issue
	
	 haraldnilsen
						haraldnilsen