Production code
feat : 2 factor authentication , OTP service , Session timeout
This commit is contained in:
@@ -11,29 +11,31 @@ ____________________________________________________________
|
||||
<!-- IB is the service name -->
|
||||
- vi IB.service
|
||||
```
|
||||
[Unit]
|
||||
Description= Internet Banking Frontened Application in Node
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
# Use absolute path for node or npm
|
||||
User=ib
|
||||
Group=ib
|
||||
ExecStart=/usr/bin/npm start
|
||||
WorkingDirectory=/home/ib/IB
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
Environment=NODE_ENV=production
|
||||
Environment=PORT=3000
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
[Unit]
|
||||
Description= Internet Banking Frontened Application in Node
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
# Use absolute path for node or npm
|
||||
User=ib_new
|
||||
Group=ib_new
|
||||
WorkingDirectory=/home/ib_new/IB
|
||||
Environment=PATH=/home/ib_new/.local/bin:/home/ib_new/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/node-v20.19.5-linux-x64/bin
|
||||
ExecStart=/opt/node-v20.19.5-linux-x64/bin/npm start
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
Environment=NODE_ENV=production
|
||||
Environment=PORT=3000
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
<All value are changed as per domain>
|
||||
```
|
||||
- sudo systemctl status IB
|
||||
- sudo systemctl start IB
|
||||
- sudo journalctl -u IB
|
||||
- sudo systemctl stop IB
|
||||
- sudo systemctl restart IB
|
||||
|
||||
@@ -44,7 +46,9 @@ ____________________________________________________________
|
||||
|
||||
UAT (IB- frontend Test) : i-0b55435e15425f1c3
|
||||
Linux : i-0c850dcf8b85b1447 (Test)
|
||||
Prod : i-088e64c3435cb5078 (For IB & MB)
|
||||
# Prod : i-088e64c3435cb5078 (For IB & MB) --old
|
||||
Prod : i-070a81f88a984f7c6 (For IB and MB)
|
||||
Mobile banking Prod DB: i-086d4cb13afc2cd83 //IB user: ib_new psw: ib_new
|
||||
```
|
||||
|
||||
## 2. list of Port :
|
||||
|
||||
Reference in New Issue
Block a user