mirror of
				https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
				synced 2025-11-04 06:20:22 +01:00 
			
		
		
		
	README - improvements
This commit is contained in:
		
							
								
								
									
										11
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								README.md
									
									
									
									
									
								
							@@ -71,7 +71,7 @@ version: '3.9'
 | 
				
			|||||||
x-dls-variables: &dls-variables
 | 
					x-dls-variables: &dls-variables
 | 
				
			||||||
  DLS_URL: localhost # REQUIRED, change to your ip or hostname
 | 
					  DLS_URL: localhost # REQUIRED, change to your ip or hostname
 | 
				
			||||||
  DLS_PORT: 443
 | 
					  DLS_PORT: 443
 | 
				
			||||||
  LEASE_EXPIRE_DAYS: 90
 | 
					  LEASE_EXPIRE_DAYS: 90  # 90 days is maximum
 | 
				
			||||||
  DATABASE: sqlite:////app/database/db.sqlite
 | 
					  DATABASE: sqlite:////app/database/db.sqlite
 | 
				
			||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
@@ -85,7 +85,12 @@ services:
 | 
				
			|||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - /opt/docker/fastapi-dls/cert:/app/cert
 | 
					      - /opt/docker/fastapi-dls/cert:/app/cert
 | 
				
			||||||
      - dls-db:/app/database
 | 
					      - dls-db:/app/database
 | 
				
			||||||
 | 
					    logging:  # optional, for those who do not need logs
 | 
				
			||||||
 | 
					      driver: "json-file"
 | 
				
			||||||
 | 
					      options:
 | 
				
			||||||
 | 
					        max-file: 5
 | 
				
			||||||
 | 
					        max-size: 10m
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
volumes:
 | 
					volumes:
 | 
				
			||||||
  dls-db:
 | 
					  dls-db:
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
@@ -135,6 +140,8 @@ This is only to test whether the service starts successfully.
 | 
				
			|||||||
```shell
 | 
					```shell
 | 
				
			||||||
cd /opt/fastapi-dls/app
 | 
					cd /opt/fastapi-dls/app
 | 
				
			||||||
su - www-data -c "/opt/fastapi-dls/venv/bin/uvicorn main:app --app-dir=/opt/fastapi-dls/app"
 | 
					su - www-data -c "/opt/fastapi-dls/venv/bin/uvicorn main:app --app-dir=/opt/fastapi-dls/app"
 | 
				
			||||||
 | 
					# or
 | 
				
			||||||
 | 
					sudo -u www-data -c "/opt/fastapi-dls/venv/bin/uvicorn main:app --app-dir=/opt/fastapi-dls/app"
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Create config file**
 | 
					**Create config file**
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user