fix: Changed env

This commit is contained in:
2025-04-15 16:21:06 +02:00
parent 160ab21fd3
commit 8b6cc32c81
4 changed files with 4 additions and 26 deletions

2
.env
View File

@@ -1,3 +1,3 @@
ORIGIN= DOMAIN=
VAPID= VAPID=
SECRET= SECRET=

View File

@@ -5,20 +5,12 @@ git submodule init
git submodule update git submodule update
``` ```
## Certbot
The project is adjusted to use of certbot.
This command might come in handy:
```
docker run --rm --name certbot -v "<PATH TO ./cert/www>:/var/www/certbot/:rw" -v "<PATH TO ./cert/conf>:/etc/letsencrypt/:rw" certbot/certbot certonly --webroot --webroot-path /var/www/certbot/ -d <DOMAIN NAME>
```
Replace `<DOMAIN NAME>` at the end with your domain name and add proper absolute `PATHS`.
## Things to change ## Things to change
Change following files: Change following files:
- `.env`: - `.env`:
| What to change | Note | | What to change | Note |
| --- | --- | | --- | --- |
| `ORIGIN=` | Insert final domain name | | `DOMAIN=` | Insert final domain name |
| `VAPID=` | Used for notifications. Currently broken. | | `VAPID=` | Used for notifications. Currently broken. |
| `SECRET=` | Used for encrypting sessions. | | `SECRET=` | Used for encrypting sessions. |
- `./config/`: - `./config/`:
@@ -32,18 +24,4 @@ Change following files:
- `usettings.json`: - `usettings.json`:
Most things can be changed on the fly inside of the app. `menu` is not done yet. Most things can be changed on the fly inside of the app. `menu` is not done yet.
- `./ipwa`: - `./ipwa`:
- `Dockerfile`:
| Line | What to change | Note |
| --- | --- | --- |
| 7 | ``apiEndpoint: `http://localhost/api`,`` | Change url to backend endpoint |
- `httpd.conf`:
| Line | What to change | Note |
| --- | --- | --- |
| 233 | `ServerAdmin you@example.com` | Change to webmaster's email |
| 242 | `ServerName www.example.com` | Change to final domain name |
| 312 | `ServerName www.example.com` | See above |
| 314 | `SSLCertificateFile /cert/live/<domain>/cert.pem` | Change `<domain>` to the domain name above |
| 315 | `SSLCertificateKeyFile /cert/live/<domain>/privkey.pem` | Change `<domain>` to the domain name above |
| 316 | `SSLCertificateChainFile /cert/live/<domain>/chain.pem` | Change `<domain>` to the domain name above |
- (Optional) `src/assets/icons/*` - You can change the icons to your own - (Optional) `src/assets/icons/*` - You can change the icons to your own

2
ipwa

Submodule ipwa updated: 7519f21389...a5824f8b51