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
+14-15
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ Create a table for Pønskelisten (Docker image does this automatically), and rem
64
64
65
65
### 2. Start Pønskelisten
66
66
67
-
If you want to edit the configuration file manually, start up Pønskelisten and then let it complain a bunch. You can edit the configuration file manually afterward. If not, look further down at the `Startup flags` for starting Pønsklisten with configuration options.
67
+
If you want to edit the configuration file manually, start up Pønskelisten and then let it complain a bunch. You can edit the configuration file manually afterward. If not, look further down at the `Startup flags` for starting Pønskelisten with configuration options.
68
68
69
69
Either compile your chosen branch/tag with Go installed and run it:
70
70
@@ -86,29 +86,28 @@ If you want to start up Pønskelisten with some startup flags for a smoother exp
86
86
87
87
#### Startup flags
88
88
89
-
You can use startup flags to generate values to populate the configuration file with. They are only used if the configuration file doesn't have a pre-configured value to prioritize. The moment the configuration file has values, these flags are useless. Sort of a one-time thing.
89
+
You can use startup flags to generate values to populate the configuration file with.
90
90
91
-
The exceptions are`generateinvite`, which will generate a new, random invitation code at each usage, and `disablesmtp` which will always disable the SMTP function.
91
+
The exception is`generateinvite`, which will generate a new, random invitation code at each usage.
92
92
93
93
<br>
94
94
<br>
95
95
96
-
| Flag | Type |Explaination|
96
+
| Flag | Type |Explanation|
97
97
|:-:|:-:|--:|
98
98
| port | integer | Which port Pønskelisten starts on. |
99
99
| timezone | string | The timezone Pønskelisten uses. Given in the TZ database name format. List can be found [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). |
100
100
| generateinvite | string (true/false) | If Pønskelisten should generate an invitation code on startup. |
101
101
| dbip | string | The connection address Pønskelisten uses to reach the database. |
102
102
| dbport | integer | The port Pønskelisten can reach the database at. |
103
103
| dbname | string | The name of the table within the database. |
104
-
| dbusername | string | The username used to autnenicate with the database. |
105
-
| dbpassword | string | The password used to autnenicate with the database. |
106
-
| disablesmtp | string (true/false) | Disables SMTP, meaning user verificaton is disabled. SMTP is enabled by default. |
104
+
| dbusername | string | The username used to authenticate with the database. |
105
+
| dbpassword | string | The password used to authenticate with the database. |
106
+
| disablesmtp | string (true/false) | Disables SMTP, meaning user verification is disabled. SMTP is enabled by default. |
107
107
| smtphost | string | The SMTP server host used. |
108
108
| smtpport | integer | The SMTP server host port used. |
109
109
| smtpusername | string | The username used to authenticate towards the SMTP server used. |
110
110
| smtppassword | string | The username used to authenticate towards the SMTP server used. |
111
-
| upgradetov2 | string (true/false) | Converts `db.sql` in the `/files` folder to the v2.00 format. |
112
111
113
112
<br>
114
113
<br>
@@ -137,7 +136,7 @@ Edit the configuration file so it can reach the MySQL database, and possibly an
137
136
138
137
Restart Pønskelisten for the changes to take effect.
139
138
140
-
You should not be able to access Pønskelisten. By default, you can find the front end at `localhost:8080`.
139
+
You should not be able to access Pønskelisten. By default, you can find the front end at `https://localhost:8080`.
141
140
142
141
<br>
143
142
<br>
@@ -158,7 +157,7 @@ I recommend installing PHPMyAdmin (a database interface) either as a [Docker ima
158
157
159
158
The first user who signs up is automatically an admin. You need an invitation code for every user who wants to sign up. This can be generated on the admin page.
160
159
161
-
Be prepared to access the DB every time a user manages to screw up their e-mail while signing up or someone needs an invitation code.
160
+
Be prepared to access the DB every time a user manages to screw up their e-mail.
162
161
163
162
<br>
164
163
<br>
@@ -167,9 +166,9 @@ Be prepared to access the DB every time a user manages to screw up their e-mail
167
166
168
167
### Environment variables
169
168
170
-
All the startup flags in the table given previously can be used as environment variables. Do keep in mind that the flags, and in turn the environment variables, are only used if the value is not already defined in the configuration file.
169
+
All the startup flags in the table given previously can be used as environment variables.
171
170
172
-
The only exceptions are the `generateinvite` and the `disablesmtp`. Consider removing the `generateinvite` environment variable from your Docker compose file so you don't generate a new code at every restart.
171
+
Consider removing the `generateinvite` environment variable from your Docker compose file so you don't generate a new code at every restart.
173
172
174
173
<br>
175
174
<br>
@@ -220,17 +219,17 @@ services:
220
219
# Where our Pønskeliste files are
221
220
volumes:
222
221
- ./data/:/app/files/
222
+
- ./images/:/app/images/
223
223
224
224
ports:
225
225
- '8080:8080'
226
-
environment:
227
226
227
+
environment:
228
228
# Generate an unused invite code on startup
229
229
# Remove this value to avoid continuous code-generation
230
230
generateinvite: true
231
231
232
-
# The container will only respect these ENV if they are empty in the config.json
0 commit comments