Added essential files
This commit is contained in:
42
README.md
Normal file
42
README.md
Normal file
@@ -0,0 +1,42 @@
|
||||
## Certbot
|
||||
The project is adjusted to use of certbot.
|
||||
This command might come in handy:
|
||||
```
|
||||
docker run --rm --name certbot -v "./cert/www:/var/www/certbot/:rw" -v "./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.
|
||||
|
||||
## Things to change
|
||||
Change following files:
|
||||
- `.env`:
|
||||
| What to change | Note |
|
||||
| --- | --- |
|
||||
| `ORIGIN=` | Insert final domain name |
|
||||
| `VAPID=` | Used for notifications. Currently broken. |
|
||||
| `SECRET=` | Used for encrypting sessions. |
|
||||
- `./config/`:
|
||||
- `keys.json`:
|
||||
| What to change | Note |
|
||||
| --- | --- |
|
||||
| `publicKey` | Add your own VAPID keys |
|
||||
| `privateKey` | Add your own VAPID keys |
|
||||
- `options.json`:
|
||||
Change your desired modules by swapping between `true` and `false` next to their name.
|
||||
- `usettings.json`:
|
||||
Most things can be changed on the fly inside of the app. `menu` is not done yet.
|
||||
- `./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
|
||||
0
cert/conf/.gitkeep
Normal file
0
cert/conf/.gitkeep
Normal file
0
cert/www/.gitkeep
Normal file
0
cert/www/.gitkeep
Normal file
37
compose.yml
Normal file
37
compose.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
services:
|
||||
front:
|
||||
build: ./ipwa
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./cert/www/:/var/www/certbot/:ro
|
||||
- ./cert/conf/:/cert/:ro
|
||||
depends_on:
|
||||
- api
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
api:
|
||||
build: ./ipwa-backend
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
expose:
|
||||
- 8080
|
||||
depends_on:
|
||||
- mongodb
|
||||
volumes:
|
||||
- ./config/:/app/config/
|
||||
- ./cert/conf/:/cert/:ro
|
||||
mongodb:
|
||||
image: mongo:latest
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 27017
|
||||
ports:
|
||||
- "127.0.0.1:27017:27017"
|
||||
volumes:
|
||||
- mongodb:/data/db
|
||||
volumes:
|
||||
mongodb:
|
||||
4
config/keys.json
Normal file
4
config/keys.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"publicKey": "",
|
||||
"privateKey": ""
|
||||
}
|
||||
8
config/options.json
Normal file
8
config/options.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"news": true,
|
||||
"menu": true,
|
||||
"notif": false,
|
||||
"groups": true,
|
||||
"clean": true,
|
||||
"key": true
|
||||
}
|
||||
22
config/usettings.json
Normal file
22
config/usettings.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"keyrooms": [],
|
||||
"cleanThings": [],
|
||||
"rooms": [],
|
||||
"menu": {
|
||||
"defaultItems": {
|
||||
"sn": [
|
||||
"Pieczywo 2",
|
||||
"Masło 1",
|
||||
"Herbata",
|
||||
"Cytryna"
|
||||
],
|
||||
"kol": [
|
||||
"Pieczywo 2",
|
||||
"Masło 1",
|
||||
"Dżem",
|
||||
"Herbata",
|
||||
"Cytryna"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user