Added SinaglR

This commit is contained in:
2023-06-08 13:36:25 -07:00
parent 2c38ecb399
commit 9452454b8a
33 changed files with 3540 additions and 33 deletions

View File

@ -19,9 +19,12 @@ completedColumns:
- [run-secrets-task](tasks/run-secrets-task.md)
- [install-vscode-extensions](tasks/install-vscode-extensions.md)
- [run-test-ports](tasks/run-test-ports.md)
- [signalr](tasks/signalr.md)
- [publish](tasks/publish.md)
- [create-as-service](tasks/create-as-service.md)
- [setup-nginx](tasks/setup-nginx.md)
- [self-signed-certificate](tasks/self-signed-certificate.md)
- [roll-out](tasks/roll-out.md)
## Todo

16
.kanbn/tasks/roll-out.md Normal file
View File

@ -0,0 +1,16 @@
---
---
# roll-out
- New page in the OI Viewer
- Set ubuntu frame to new OI Viewer page
- Does it refesh by it self?
- EAF needs what for the batch field
- SP1 needs to get the barcode from one of the two servers dependent on tool queued by EDA
## Sub-tasks
- [ ] phares3757
- [ ] unity4
- [ ] unity5

View File

@ -0,0 +1,20 @@
---
---
# self-signed-certificate
```bash
sudo -i
nano /etc/hosts/
apt-get install -y ca-certificates
openssl s_client -showcerts -connect DESKTOP-H6JG91B:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >DESKTOP-H6JG91B.crt
cp /home/unity5/Barcode-Host/DESKTOP-H6JG91B.crt /usr/local/share/ca-certificates/DESKTOP-H6JG91B.crt
update-ca-certificates
exit
```
## Sub-tasks
- [ ] phares3757
- [ ] unity4
- [x] unity5

View File

@ -91,6 +91,11 @@ server {
listen [::]:443 default_server ssl http2;
location / {
proxy_pass http://localhost:5003;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
```

21
.kanbn/tasks/signalr.md Normal file
View File

@ -0,0 +1,21 @@
---
---
# signalr
- [Framework-4.5.1](https://learn.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr?source=recommendations)
- [OnNotificationReceivedAsync](https://learn.microsoft.com/en-us/training/modules/aspnet-core-signalr/3-how-signalr-works)
```bash
# https://learn.microsoft.com/en-us/aspnet/core/tutorials/signalr?view=aspnetcore-7.0&tabs=visual-studio-code
dotnet tool uninstall -g Microsoft.Web.LibraryManager.Cli
dotnet tool install -g Microsoft.Web.LibraryManager.Cli
libman install @microsoft/signalr@latest -p unpkg -d wwwroot/js/signalr --files dist/browser/signalr.js --files dist/browser/signalr.js
# http://localhost:5003/notification
```
## Sub-tasks
- [ ] phares3757
- [ ] unity4
- [ ] unity5