feat: user can set and update username with 2 step authentication
This commit is contained in:
@@ -137,4 +137,44 @@ scp -P 9022 Smsservice/smsserviceapplication.jar <username>@localhost:/home/<use
|
||||
- **2** → Read Only
|
||||
-**null** → not configured consider as disabled
|
||||
|
||||
## 8. NGINX setup:
|
||||
|
||||
- sudo vi /etc/nginx/conf.d/ib.conf
|
||||
|
||||
- sudo cat /etc/nginx/conf.d/ib.conf
|
||||
|
||||
```
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
return 301 https://$host$request_uri; # redirect all HTTP to HTTPS
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name _;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/IB.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/IB.key;
|
||||
|
||||
# Your chosen log files
|
||||
error_log /var/log/nginx/ib_error.log warn;
|
||||
access_log /var/log/nginx/ib_access.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- sudo nginx -t
|
||||
- sudo systemctl reload nginx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user