2024-06-03
This commit is contained in:
104
_-Review/nginx.md
Normal file
104
_-Review/nginx.md
Normal file
@ -0,0 +1,104 @@
|
||||
---
|
||||
type: "topic"
|
||||
created: "2024-01-14T02:18:17.191Z"
|
||||
updated: "2024-04-08T16:54:45.140Z"
|
||||
---
|
||||
|
||||
# nginx
|
||||
|
||||
```Replace
|
||||
{machine} = ______
|
||||
oi-metrology-viewer-prod = ______
|
||||
IFXApps = ______
|
||||
DevOps\Mesa_FI = ______
|
||||
https://tfs.intra.infineon.com/tfs/ManufacturingIT/Mesa_FI/_git/NGINX-Conf = ______
|
||||
```
|
||||
|
||||
```bash Mon Nov 20 2023 11:10:42 GMT-0700 (Mountain Standard Time)
|
||||
mkdir "C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps"
|
||||
powershell -command "Expand-Archive C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps\nssm-2.24.zip C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps"
|
||||
L:
|
||||
mkdir "L:\DevOps"
|
||||
mkdir "L:\DevOps\Mesa_FI"
|
||||
git clone https://tfs.intra.infineon.com/tfs/ManufacturingIT/Mesa_FI/_git/NGINX-Conf "L:\DevOps\Mesa_FI\NGINX-Conf"
|
||||
cd "L:\DevOps\Mesa_FI\NGINX-Conf"
|
||||
git checkout -q -b {machine} --no-track
|
||||
git reset --soft "59d2ef6e445c5535736729915dd38d686ecc5a97"
|
||||
git reset -q HEAD -- .
|
||||
powershell -command "Expand-Archive C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps\nginx-1.20.1.zip L:\DevOps\Mesa_FI\NGINX-Conf"
|
||||
rmdir /s /q "L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\conf"
|
||||
mklink /J "L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\conf" "L:\DevOps\Mesa_FI\NGINX-Conf\conf"
|
||||
move "L:\DevOps\Mesa_FI\NGINX-Conf\conf\localhost.conf" "L:\DevOps\Mesa_FI\NGINX-Conf\conf\oi-metrology-viewer-prod.conf"
|
||||
code "L:\DevOps\Mesa_FI\NGINX-Conf"
|
||||
```
|
||||
|
||||
```bash
|
||||
# https://webscoot.io/blog/create-self-signed-certificate-ubuntu-windows-nginx/
|
||||
cd "C:\Program Files\git\usr\bin"
|
||||
openssl
|
||||
```
|
||||
|
||||
```bash openssl csr
|
||||
req -newkey rsa:2048 -keyout "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.key" -out "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.csr" -config "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.conf"
|
||||
https://intranet.infineon.com/
|
||||
# iqs-prod.mes.infineon.com Commit: a52cb36cd25f0850212f8a6442263da5671e8894
|
||||
# oi-metrology-viewer-prod.mes.infineon.com Commit: ???
|
||||
```
|
||||
|
||||
```https ssa
|
||||
https://ssa.eu.infineon.com/wm/app-SelfServicePortal/search-page/6cac2957-1ae1-e511-dd9b-74d02b9d869c/structure/
|
||||
```
|
||||
|
||||
```bash Administrator
|
||||
L:
|
||||
cd "L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1"
|
||||
nginx -t
|
||||
"C:\Windows\System32\Config\SystemProfile\AppData\Local\IFXApps\nssm-2.24\win64\nssm.exe" install nginx
|
||||
```
|
||||
|
||||
```yml NSSM-Application
|
||||
Path: L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\nginx.exe
|
||||
Startup Directory: L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1
|
||||
```
|
||||
|
||||
```yml NSSM-Details
|
||||
Startup type: Automatic (Delay Start)
|
||||
```
|
||||
|
||||
```yml NSSM-I/O
|
||||
Input (stdin): start nginx
|
||||
Output (stdout): L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\logs\service.out.log
|
||||
Error (stderr): L:\DevOps\Mesa_FI\NGINX-Conf\nginx-1.20.1\logs\service.error.log
|
||||
```
|
||||
|
||||
```bash Administrator
|
||||
sc start nginx
|
||||
sc query nginx
|
||||
sc stop nginx
|
||||
sc start nginx
|
||||
```
|
||||
|
||||
```bash openssl crt
|
||||
req -x509 -nodes -days 365 -newkey rsa:2048 -keyout "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.key" -out "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.crt" -config "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.conf"
|
||||
```
|
||||
|
||||
```bash openssl key
|
||||
pkcs12 -in "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.pfx" -nocerts -out "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.key"
|
||||
```
|
||||
|
||||
```bash openssl crt
|
||||
pkcs12 -in "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.pfx" -clcerts -nokeys -out "L:\DevOps\Mesa_FI\NGINX-Conf\conf\includes\oi-metrology-viewer-prod.crt"
|
||||
```
|
||||
|
||||
```bash
|
||||
git clone https://tfs.intra.infineon.com/tfs/ManufacturingIT/Mesa_FI/_git/NGINX-Conf "L:\DevOps\Mesa_FI\NGINX-Conf"
|
||||
git reset --hard 59d2ef6e445c5535736729915dd38d686ecc5a97
|
||||
```
|
||||
|
||||
```bash Sun Apr 07 2024 21:28:52 GMT-0700 (Mountain Standard Time)
|
||||
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/music3757.ddns.net.key -out /etc/nginx/music3757.ddns.net.crt -config /home/pi3/raspberry.server.conf
|
||||
```
|
||||
|
||||
```bash
|
||||
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
|
||||
```
|
Reference in New Issue
Block a user