saved copies of more server important files

pull/2/head
Nilo Roberto C Paim 2023-01-27 17:38:07 -03:00
parent d048bc7ed7
commit d78071a4c0
4 changed files with 28 additions and 2 deletions

2
.env
View File

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

View File

@ -1,4 +1,4 @@
http://www.pcastt.com.br, http://pcastt.com.br {
http://www.pcastt.com.br, http://pcastt.com.br, https://www.pcastt.com.br, https://pcastt.com.br {
root * /root/sites/pcastt
file_server
@ -6,3 +6,12 @@ http://www.pcastt.com.br, http://pcastt.com.br {
reverse_proxy localhost:8111
}
}
http://www.pcastlive.com.br, http://pcastlive.com.br, https://www.pcastlive.com.br, https://pcastlive.com.br {
root * /root/sites/pcastlive
file_server
handle_path /api/* {
reverse_proxy localhost:8112
}
}

13
infra/api.service Normal file
View File

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

4
infra/newapi.sh Normal file
View File

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