saved copies of server important files

pull/2/head
Nilo Roberto C Paim 2023-01-27 17:13:51 -03:00
parent 19eb020edf
commit d048bc7ed7
4 changed files with 28 additions and 1 deletions

4
.env
View File

@ -3,7 +3,9 @@ API_SECRET=nyEX8BZ44KqTXeV2
# API configuration # API configuration
API_PORT=8111 API_PORT=8111
API_RELEASE="Homologação" API_RELEASE="Desenvolvimento"
#API_RELEASE="Homologação"
#API_RELEASE=""
# DB configuration # DB configuration
DB_HOST=177.153.50.98 DB_HOST=177.153.50.98

8
infra/Caddyfile Normal file
View File

@ -0,0 +1,8 @@
http://www.pcastt.com.br, http://pcastt.com.br {
root * /root/sites/pcastt
file_server
handle_path /api/* {
reverse_proxy localhost:8111
}
}

13
infra/apihomolog.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Pcast Homolog API
After=multi-user.target
[Service]
WorkingDirectory=/root/api-homolog
# RootDirectory=/root/api-homolog
ExecStart=/root/api-homolog/api
Type=simple
[Install]
WantedBy=multi-user.target

4
infra/newapi-homolog.sh Normal file
View File

@ -0,0 +1,4 @@
service apihomolog stop
cp /home/ftpuser/ftp/files/api /root/api-homolog
chmod 777 api
service apihomolog start