Server component of projetoumportodostodosporum.org's website.
Create a copy from .env.dev.example
file in the root folder and rename to .env.dev
and update it accordingly.
Same as above using .env.preview.example
file.
You need to set these variables session-wide:
ACCESS_TOKEN_JWT_SECRET
REFRESH_TOKEN_JWT_SECRET
MAIL_HOST
MAIL_PORT
MAIL_USER
MAIL_PASSWORD
MAIL_FROM
DATABASE_URL
DB_USER
DB_PASSWORD
REDIS_HOST
REDIS_PORT
SESSION_SECRET
./scripts.sh start:dev
./scripts.sh start:preview
./scripts.sh start:prod
./scripts.sh build:preview
./scripts.sh build:prod
Inside Server's container as root user: docker exec -it --user root server sh
.
./scripts.sh certbot:renew
- Cerbot renew process./scripts.sh certbot:renew-dry
- Cerbot renew test process./scripts.sh certbot:get
- obtain SSL certificates./scripts.sh certbot:get-staging
- certbot:get staging
certbot:get-staging
- verify if everything is okcertbot:get
- get certificatesnginx:https
- update nginx configuration files
Inside Server's container as root user: docker exec -it --user root server sh
.
./scripts.sh nginx:http
- change server conf to http only (pre SSL certificates)./scripts.sh nginx:https
- change server conf to https (post SSL certificates)
- Backend (api)
- Website (web)
- Content Management (cms)