0% found this document useful (0 votes)
25 views

Settingan Config

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Settingan Config

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

set port nginx

- di /etc/nginx/site-enabled ---> default


- sudo default
server {
listen 80 default_server;
listen [::]:80 default_server;

# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#a
# include snippets/snakeoil.conf;
add_header X-Frame-Options DENY;
add_header Strict-Transport-Security "max-age=31536000";

root /etc/nginx/build2;

# Add index.php to the list if you are using PHP


index index.html index.htm index.nginx-debian.html;

server_name _;

location / {
index index.html;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html;
}
- lalu sudo service nginx start

2. Buat Folder 'cpm' di folder environment


3. Buat folder 'app' dan 'tms' di folder 'cpm'
4. Buat file app.cfg di folder 'app'
TERMINAL_ID=69
CORE_URL=http://10.10.10.83:8080/bri-fs-app
PINBLOCK_KEY=1111111111111111
DUMMY_API=YES
BRISIM_SYNC_TIMER=
HSM_ZPK_ENCRYPTED=
BRI_WEB_MONITORING_URL=
HSM_IP_ADDRESS=
HSM_IP_PORT=
5. buat file db.cfg di folder app
DB_URL=10.10.10.83:5432
DB_NAME=bri-fs-app
DB_USERNAME=postgres
DB_PASSWORD=GM4uJO7xhICTzWen4Msg1cuReCvSaNImRA==
WEBSOCKET_URL=http://10.10.10.83:8080
PATH_SOAP_SERVICE=
6. buat file config.cfg di folder 'tms'
API_URL=http://10.10.10.83:8080/bri-fs-app

7. Copy war app dan web ke folder webapps apache tomcat


8. Copy 'build' ke nginx
9. ubah config.json --> pakai ip (note:bisa pakai dns)
10.setelah diubah 'sudo chmod 777 -R build/'
11. restart nginx
12. setelah run catalina war akan otomatis ke extract
13. Lalu buka di chrome sesuai dengan setting url ya (pakai ip)
14. Hapus war yang ada di folder webapps
15. buka folder 'bri-fs-web', lalu buka 'js' dan ganti IP di file
'configurationApi.min.js'
16.

You might also like