Compare commits
	
		
			No commits in common. "ed0a951aed08c62453e8cbf8708ec0ea443e23f3" and "a13ceb3cb0da2f12b8865b0536b500a05602f187" have entirely different histories.
		
	
	
		
			ed0a951aed
			...
			a13ceb3cb0
		
	
		
							
								
								
									
										11
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								README.md
									
									
									
									
									
								
							|  | @ -63,12 +63,13 @@ Here are some key environment variables: | |||
| - `ANKI_PORT`: Port on which the Anki server should run. | ||||
| - `ANKI_VOLUME_PATH`: Local path for the volume storage. | ||||
| 
 | ||||
| ### Username and Password Configuration | ||||
| ## Usage | ||||
| 
 | ||||
| 1. Inside the `.env` file, locate the `SYNC_USERS` variable. | ||||
| 2. Enter the desired usernames and passwords in the format: `username:password`. | ||||
|    - For multiple users, separate them with a comma: `user1:pass1,user2:pass2`. | ||||
| 3. Save the changes and restart the Anki sync service. | ||||
| You can interact with the Anki sync server using the provided `ankictl.sh` script: | ||||
| 
 | ||||
| ```bash | ||||
| ./ankictl.sh [options] | ||||
| ``` | ||||
| 
 | ||||
| ## Maintenance | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										3
									
								
								ankictl.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								ankictl.sh
									
									
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| #!/bin/bash | ||||
| 
 | ||||
| sudo docker-compose exec anki-sync-server ./ankisyncctl.py ${1} ${2} ${3} ${4} | ||||
|  | @ -1,3 +1 @@ | |||
| ANKI_PORT=27701 | ||||
| ANKI_VOLUME_PATH=/var/lib/anki/data | ||||
| SYNC_USERS=user1:pass,user2:pass,user3:pass | ||||
| .env | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user