General clean up
This commit is contained in:
@@ -40,7 +40,7 @@ AE_API_SECRET_KEY=the-secret-api-key
|
|||||||
AE_DB_SERVER=linode.oneskyit.com
|
AE_DB_SERVER=linode.oneskyit.com
|
||||||
AE_DB_PORT=3306
|
AE_DB_PORT=3306
|
||||||
AE_DB_NAME=aether_dev
|
AE_DB_NAME=aether_dev
|
||||||
# AE_DB_USERNAME=osit_aether
|
AE_DB_USERNAME=osit_aether
|
||||||
AE_DB_PASSWORD="the password with $$ escape"
|
AE_DB_PASSWORD="the password with $$ escape"
|
||||||
|
|
||||||
## Aether Redis access and use
|
## Aether Redis access and use
|
||||||
|
|||||||
23
README.md
23
README.md
@@ -25,25 +25,40 @@ sudo chown -R scott:scott /srv/env/test_aether/srv/mariadb/
|
|||||||
cp /srv/env/test_aether/.env /srv/env/test_aether/.env.bak
|
cp /srv/env/test_aether/.env /srv/env/test_aether/.env.bak
|
||||||
cp /srv/env/test_aether/.env.default /srv/env/test_aether/.env
|
cp /srv/env/test_aether/.env.default /srv/env/test_aether/.env
|
||||||
```
|
```
|
||||||
**/.env**
|
**/.env [very basic example]**
|
||||||
```sh
|
```cnf
|
||||||
# One Sky IT's Aether Framework and System
|
# One Sky IT's Aether Framework and System
|
||||||
|
|
||||||
OSIT_ENV=development
|
OSIT_ENV=development
|
||||||
|
|
||||||
# Aether general shared config options
|
# Aether general shared config options
|
||||||
|
AE_CFG_ID=0
|
||||||
|
|
||||||
## Aether API access and use
|
## Aether API access and use
|
||||||
## Aether DB access and use
|
## Aether DB access and use
|
||||||
|
AE_DB_PASSWORD="the password with $$ escape"
|
||||||
## Aether Redis access and use
|
## Aether Redis access and use
|
||||||
## Aether SMTP access and use
|
## Aether SMTP access and use
|
||||||
|
|
||||||
# Aether API specific config options (FastAPI)
|
# Aether API specific config options (FastAPI)
|
||||||
|
|
||||||
# Aether app specific config (Flask with Svelte)
|
# Aether app specific config (Flask with Svelte)
|
||||||
|
AE_APP_CFG_ID=0
|
||||||
|
|
||||||
KEY="The Value"
|
KEY="The Value"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Part 4 - Still figuruing things out...
|
||||||
|
Update /etc/hosts with something like this.
|
||||||
|
```cnf
|
||||||
|
127.0.0.1 dev-api.oneskyit.com dev-app.oneskyit.com
|
||||||
|
127.0.0.1 dev-demo.oneskyit.com dev-businessgroup.oneskyit.com dev-ishlt.oneskyit.com
|
||||||
|
```
|
||||||
|
|
||||||
|
* Nothing in aether_flask_gunicorn_conf.py needs to be changed?
|
||||||
|
* Nothing in aether_fastapi_gunicorn_conf.py needs to be changed?
|
||||||
|
* Nothing in aether_api_config.py needs to be changed?
|
||||||
|
* Nothing in aether_app_config.py needs to be changed?
|
||||||
|
|
||||||
## Manage Docker Compose Environment
|
## Manage Docker Compose Environment
|
||||||
```bash
|
```bash
|
||||||
@@ -52,8 +67,12 @@ docker restart ae_app_dev
|
|||||||
docker restart ae_mariadb_dev
|
docker restart ae_mariadb_dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## More Notes
|
## More Notes
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
3
conf/certs/.gitignore
vendored
3
conf/certs/.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
# Ignore everything in this directory
|
# Ignore everything in this directory
|
||||||
*
|
*
|
||||||
# Except for this file
|
# Except for this file
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
!README.md
|
||||||
|
|||||||
14
conf/certs/README.md
Normal file
14
conf/certs/README.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Create a links to the pem files
|
||||||
|
* ./conf/certs/oneskyit.com_fullchain.pem
|
||||||
|
* ./conf/certs/privkey.pem
|
||||||
|
* ./conf/certs/ssl-dhparams.pem
|
||||||
|
|
||||||
|
## Copy certs
|
||||||
|
### Copy Let's Encrypt
|
||||||
|
Does the ownership or other permissions need to change?
|
||||||
|
```bash
|
||||||
|
sudo cp /etc/letsencrypt/live/oneskyit.com-0001/fullchain.pem /srv/env/test_aether/conf/certs/fullchain.pem
|
||||||
|
sudo cp /etc/letsencrypt/live/oneskyit.com-0001/privkey.pem /srv/env/test_aether/conf/certs/privkey.pem
|
||||||
|
sudo cp /etc/letsencrypt/ssl-dhparams.pem /srv/env/test_aether/conf/certs/ssl-dhparams.pem
|
||||||
|
# sudo chown -R scott:scott ~/srv/env/test_aether/certs/
|
||||||
|
```
|
||||||
@@ -174,7 +174,7 @@ services:
|
|||||||
# image: mariadb/server:latest
|
# image: mariadb/server:latest
|
||||||
image: mariadb:10.9
|
image: mariadb:10.9
|
||||||
# image: mariadb:10.6
|
# image: mariadb:10.6
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
# env_file:
|
# env_file:
|
||||||
# - ./.env
|
# - ./.env
|
||||||
# - filename.env
|
# - filename.env
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ ln -s ~/OSIT_dev/aether_api_fastapi ~/OSIT_dev/aether_container_env/srv/aether_a
|
|||||||
ln -s /mnt/data/speaker_ready/hosted_tmp /srv/env/test_aether/srv/hosted_tmp_ln
|
ln -s /mnt/data/speaker_ready/hosted_tmp /srv/env/test_aether/srv/hosted_tmp_ln
|
||||||
ln -s /mnt/data_drive/srv/data/osit_app/hosted_tmp /home/scott/OSIT_dev/aether_container_env/srv/hosted_tmp_ln
|
ln -s /mnt/data_drive/srv/data/osit_app/hosted_tmp /home/scott/OSIT_dev/aether_container_env/srv/hosted_tmp_ln
|
||||||
ln -s /mnt/data_drive/srv/data/osit_app/hosted_tmp_dev /home/scott/OSIT_dev/aether_container_env/srv/hosted_tmp_ln
|
ln -s /mnt/data_drive/srv/data/osit_app/hosted_tmp_dev /home/scott/OSIT_dev/aether_container_env/srv/hosted_tmp_ln
|
||||||
|
|
||||||
|
# scott-laptop-main:
|
||||||
|
ln -s /data/OSIT/hosted_tmp /home/scott/OSIT_dev/aether_container_env/srv/hosted_tmp_ln
|
||||||
```
|
```
|
||||||
|
|
||||||
### Hosted (hashed) files
|
### Hosted (hashed) files
|
||||||
@@ -32,6 +35,9 @@ ln -s /mnt/data_drive/srv/data/osit_app/hosted_tmp_dev /home/scott/OSIT_dev/aeth
|
|||||||
ln -s /mnt/data/speaker_ready/hosted_files /srv/env/test_aether/srv/hosted_files_ln
|
ln -s /mnt/data/speaker_ready/hosted_files /srv/env/test_aether/srv/hosted_files_ln
|
||||||
ln -s /mnt/data_drive/srv/data/osit_app/hosted_files /home/scott/OSIT_dev/aether_container_env/srv/hosted_files_ln
|
ln -s /mnt/data_drive/srv/data/osit_app/hosted_files /home/scott/OSIT_dev/aether_container_env/srv/hosted_files_ln
|
||||||
ln -s /mnt/data_drive/srv/data/osit_app/hosted_files_dev /home/scott/OSIT_dev/aether_container_env/srv/hosted_files_ln
|
ln -s /mnt/data_drive/srv/data/osit_app/hosted_files_dev /home/scott/OSIT_dev/aether_container_env/srv/hosted_files_ln
|
||||||
|
|
||||||
|
# scott-laptop-main:
|
||||||
|
ln -s /data/OSIT/hosted_files /home/scott/OSIT_dev/aether_container_env/srv/hosted_files_ln
|
||||||
```
|
```
|
||||||
|
|
||||||
### MariaDB
|
### MariaDB
|
||||||
@@ -40,4 +46,4 @@ sudo rsync -vhr -progress /var/lib/mysql/ /srv/env/test_aether/srv/mariadb/
|
|||||||
rsync -v /var/lib/mysql/ /srv/env/test_aether/srv/mariadb/
|
rsync -v /var/lib/mysql/ /srv/env/test_aether/srv/mariadb/
|
||||||
|
|
||||||
sudo chown -R scott:scott /srv/env/test_aether/srv/mariadb/
|
sudo chown -R scott:scott /srv/env/test_aether/srv/mariadb/
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user