You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-8Lines changed: 32 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,10 +47,26 @@ will be prompted to provide the required values, which will be saved locally.
47
47
```
48
48
49
49
-`databaseUrl`: The database URL (without username or password).
50
-
-`databaseUser`: The username for your database.
51
-
-`databasePassword`: The password for your database.
52
-
-`hostAddress`: The host address of the server. If not provided, defaults to `0.0.0.0`.
53
-
-`serverPort`: The port number on which the server runs. If not provided, defaults to `8080`.
50
+
-`databaseUrl` should always start with the name of the database you're using:
51
+
- PGSQL (or) PostgreSQL :
52
+
```
53
+
postgresql://someAddress:port/linkora
54
+
```
55
+
- MySQL :
56
+
```
57
+
mysql://someAddress:port/linkora
58
+
```
59
+
- SQLite :
60
+
```
61
+
sqlite:path-to-db
62
+
```
63
+
`path-to-db` should look something like `sqlite:/home/saketh/Documents/sqlite/databaseFileName`
64
+
- `databaseUser`: The username of the database you want to connect to.
65
+
- If you are using SQLite, leave this blank or press Enter when the setup prompts for it.
66
+
- `databasePassword`: The password of the database you want to connect to.
67
+
- If you are using SQLite, leave this blank or press Enter when the setup prompts for it.
68
+
- `hostAddress`: The host address of the server. If not provided, it defaults to the `IPv4` of the network currently connected to. When connecting from Linkora apps, you should pass this address instead of `localhost`.
69
+
- `serverPort`: The port number on which the server runs. If not provided, defaults to `45454`.
54
70
- `serverAuthToken`: A secure token used to authenticate requests from the Linkora app. Treat this like a password and
55
71
keep it confidential.
56
72
@@ -65,13 +81,15 @@ set:
65
81
66
82
- `LINKORA_SERVER_USE_ENV_VAL`: Set this to `true` to enable the use of environment variables. This must always be `true` when using environment variables.
67
83
- `LINKORA_DATABASE_URL`: The database URL (without username or password).
68
-
-`LINKORA_DATABASE_USER`: The username for your database.
69
-
-`LINKORA_DATABASE_PASSWORD`: The password for your database.
84
+
- `LINKORA_DATABASE_USER`: The username of the database you want to connect to.
85
+
- If you are using SQLite, leave this blank.
86
+
- `LINKORA_DATABASE_PASSWORD`: The password of the database you want to connect to.
87
+
- If you are using SQLite, leave this blank.
70
88
- `LINKORA_SERVER_AUTH_TOKEN`: A secure token used to authenticate requests from the Linkora app. Treat this like a
71
89
password and
72
90
keep it confidential.
73
-
-`LINKORA_HOST_ADDRESS`: The host address of the server. If not provided, defaults to `0.0.0.0`.
74
-
-`LINKORA_SERVER_PORT`: The port number on which the server runs. If not provided, defaults to `8080`.
91
+
- `LINKORA_HOST_ADDRESS`: The host address of the server. If not provided, it defaults to the `IPv4` of the network currently connected to. When connecting from Linkora apps, you should pass this address instead of `localhost`.
92
+
- `LINKORA_SERVER_PORT`: The port number on which the server runs. If not provided, defaults to `45454`.
75
93
76
94
### 3. Hosting Options
77
95
@@ -145,6 +163,12 @@ authentication details.
145
163
- For local hosting with Docker, use the provided `docker run` command with environment variables.
146
164
- For remote hosting, use the environment variable service provided by your cloud hosting provider.
147
165
166
+
#### Workflow of Linkora, which should make it easier to understand how everything works:
Copy file name to clipboardExpand all lines: src/main/resources/raw/SERVER_IS_CONFIGURED.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
It seems you've correctly configured the sync-server.
1
+
It seems you've configured the sync-server correctly; to check if it's running, browse to this endpoint or refresh—if the page loads again, the server is up; ensure the connected database is also running.
2
2
3
3
This server is meant to communicate only with the **[Linkora](https://github.com/LinkoraApp/Linkora)** apps, available on **Android** and **Desktop**. There's no web-based frontend yet, so you can’t control anything through a web interface. That said, if you’re willing to build your own custom solution from scratch that connects to this server and does what it needs to, then it’s totally possible.
0 commit comments