saved copies of more server important files
parent
d048bc7ed7
commit
d78071a4c0
2
.env
2
.env
|
|
@ -3,7 +3,7 @@ API_SECRET=nyEX8BZ44KqTXeV2
|
||||||
|
|
||||||
# API configuration
|
# API configuration
|
||||||
API_PORT=8111
|
API_PORT=8111
|
||||||
API_RELEASE="Desenvolvimento"
|
#API_RELEASE="Desenvolvimento"
|
||||||
#API_RELEASE="Homologação"
|
#API_RELEASE="Homologação"
|
||||||
#API_RELEASE=""
|
#API_RELEASE=""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
root * /root/sites/pcastt
|
||||||
file_server
|
file_server
|
||||||
|
|
||||||
|
|
@ -6,3 +6,12 @@ http://www.pcastt.com.br, http://pcastt.com.br {
|
||||||
reverse_proxy localhost:8111
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
service api stop
|
||||||
|
cp /home/ftpuser/ftp/files/api /root/api
|
||||||
|
chmod 777 /root//api/api
|
||||||
|
service api start
|
||||||
Loading…
Reference in New Issue