Comments (7)
Hi,@JACK-THINK ,Thanks for the report.You are right.
Hello,@redmie ,I can not think up a better way to fix this and what I only do is use hard-code dir ,Do you have some ideas?
from anki-sync-server-rs.
Just checked out the code @dobefore, configuration file is not loaded ever. So no need to hard code paths, that's not the problem.
I'm really not happy with the way the configuration system works right now and want to fix it.
Please assign this issue to me I will rework this part before next Friday.
I *will change configuration file format to fix typos in configuration and allow its serialization and de-serialization.
I want to change the name of the config file to something that will allow one to find the software it is related to.
In the installation guide here you can see that I named it ankisyncd.toml
.
As you can see @JACK-THINK it still alpha quality (and i'm still not running it at home (else I would have caught it sooner), I'm waiting for the internal logic and bugs to be ironed out first).
from anki-sync-server-rs.
@redmie ,THanks for the reply!looking forward to your contribution!
Acatually the application reads root folder(default to the same dir as the executable) from configure file.
Will it possible that the default configure file path is set to the same path as the executable? I just wondering this can be convienient for users who use it on windows
from anki-sync-server-rs.
This hopefully will be solved by #35.
Note that the configuration file will change (but you can see the defaults by calling the server with --defaults
) and be incompatible with the current one.
from anki-sync-server-rs.
Hi, @JACK-THINK.
Due to @redmie 's wonderful efforts,bug apears to be fixed!releases 0.1.8 is available !
After that,creating user from config file is currently impossible,which maybe return back.
So you can use command user
more see README.If you would like to load configuration not from the same path as ankisyncd
,you may need to move auth.db
to that path.
feel free to reopen.
from anki-sync-server-rs.
I think making user/password available in config file is bad design security wise. Even in terms of usability what happens if you change the username in the config file? what if you change the password? There is so many strange corner cases possible that we should avoid that altogether.
One can simply add user to database using command and script it if automation is required.
from anki-sync-server-rs.
Sound reasonable! sorry for my less of consideration.So we will no longer make user/password available in config file
from anki-sync-server-rs.
Related Issues (20)
- Use in memory database to manage sessions HOT 2
- Official media sync API HOT 1
- Error handle:AnkiError (from anki lib) HOT 1
- Authentication failed for nonexistent user HOT 3
- Incorrect log time
- How docker persists storage HOT 14
- github action dependencybot HOT 1
- MAXIMUM_UPLOAD_size
- When modifying the save location of "root_dir", other files are also stored in "/app" HOT 5
- docker 0.2.6 version cannot run HOT 3
- when i migrate anki-sync-server to anki-sync-server-rs ,the anki client will get 500 http error HOT 3
- Will be incompatible with new versions 2.1.57+
- catch changes in 2.1.58
- Sync not reliable on desktop 2.1.60 HOT 12
- /lib64/libm.so.6: version `GLIBC_2.xx' not found HOT 2
- Users cannot be dynamically added/无法动态添加用户 HOT 2
- iPhone crashes after full sync enabled HOT 1
- I hope to support dynamic deletion of users and dynamic modification of passwords./希望支持动态删除用户、动态修改密码
- The docker container could not be initialized if ANKISYNCD_USERNAME and ANKISYNCD_PASSWORD were not set
- Anki 23.10 Click “Sync” Button then display:JsonError { info: "missing field `media_usn` at line 1 column 115" } HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anki-sync-server-rs.