saved copies of server important files
parent
19eb020edf
commit
d048bc7ed7
4
.env
4
.env
|
|
@ -3,7 +3,9 @@ API_SECRET=nyEX8BZ44KqTXeV2
|
|||
|
||||
# API configuration
|
||||
API_PORT=8111
|
||||
API_RELEASE="Homologação"
|
||||
API_RELEASE="Desenvolvimento"
|
||||
#API_RELEASE="Homologação"
|
||||
#API_RELEASE=""
|
||||
|
||||
# DB configuration
|
||||
DB_HOST=177.153.50.98
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
service apihomolog stop
|
||||
cp /home/ftpuser/ftp/files/api /root/api-homolog
|
||||
chmod 777 api
|
||||
service apihomolog start
|
||||
Loading…
Reference in New Issue