Compare commits

..

1 Commits

Author SHA1 Message Date
cb187a5db3 034E8FF1ED4D1F6 2025-06-08 14:05:14 -07:00
12 changed files with 69 additions and 28 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
nginx-1.20.1

View File

@ -6,5 +6,6 @@
"files.exclude": {
"**/.git": false
},
"coverage-gutters.coverageBaseDir": "./.vscode/ReportGenerator/Cobertura/*"
"coverage-gutters.coverageBaseDir": "./.vscode/ReportGenerator/Cobertura/*",
"thunder-client.saveToWorkspace": false
}

View File

@ -0,0 +1 @@
location / { proxy_pass http://localhost:5006; }

23
conf/includes/BaGet.conf Normal file
View File

@ -0,0 +1,23 @@
location /
{
proxy_pass http://localhost:5555;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
}
# sc create "Baget-5555" start= delayed-auto DisplayName="Baget-5555" binPath= "C:\Users\phares\AppData\Local\IFXApps\BaGet\src\BaGet\bin\Release\net6.0\win-x64\publish\BaGet.exe" obj= "infineon\phares" password= ""
# $source = "C:\Users\ecphares\.nuget\packages"
# $destination = "http://localhost:5555/v3/index.json"
# & nuget.exe setapikey "ApiKey" -Source $destination
# $packages = nuget list -AllVersions -Source $source
# $packages | % {
# $id, $version = $_ -Split " "
# $nupkg = $id + "." + $version + ".nupkg"
# $path = [IO.Path]::Combine($source, $id, $version, $nupkg)
# Write-Host "nuget.exe push -Source $destination ""$path"""
# & nuget.exe push -Source $destination $path
# }

View File

@ -0,0 +1 @@
location / { proxy_pass http://localhost:5006; }

View File

@ -1 +0,0 @@
location / { proxy_pass http://localhost:5010; }

View File

@ -0,0 +1 @@
location / { proxy_pass http://localhost:5004; }

View File

@ -1 +0,0 @@
location / { proxy_pass http://localhost:5002; }

24
conf/includes/json.conf Normal file
View File

@ -0,0 +1,24 @@
# location ~ /admin(.*)/$ {
location ~* .(3gp|apng|avi|avif|bmp|css|cur|flv|gif|htm|html|ico|jfif|jpeg|jpg|js|mid|mov|mp3|mp4|mpeg|mpg|ogg|pdf|php|pjp|pjpeg|png|svg|tif|tiff|txt|wav|webp|wmf|wml|wmv|xml|xml)$ {
expires 1d;
index index.html index.htm;
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\GitHub\NGINdeX.io"
root "D://Tmp//phares//www";
}
location / {
index index.html index.htm;
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\GitHub\NGINdeX.io"
root "D://Tmp//phares//www";
# First attempt to serve request as file, then
autoindex on;
# Send the data in JSON
autoindex_format json;
addition_types application/json;
# Calling from SERVERNAME/autoindex/*
add_before_body /NGINdeX.io/header.html;
add_after_body /NGINdeX.io/footer.html;
# Need to tell that we are sending HTML
add_header Content-Type text/html;
}

View File

@ -1,3 +1,4 @@
location / {
root "D:\\Tmp\\Phares\\www";
root "D://www";
index index.html index.htm;
}

View File

@ -94,4 +94,8 @@ types {
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
application/x-ms-application application;
application/x-ms-manifest manifest;
application/octet-stream deploy;
}

View File

@ -3,33 +3,19 @@ events {
worker_connections 1024;
}
http {
include "includes/mime.types";
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
include "includes/mime.types";
default_type application/octet-stream;
server {
listen 5050;
server_name localhost;
include "includes/html.conf";
listen 8080;
server_name _;
error_page 500 502 503 504 /50x.html;
include "includes/html-error.conf";
location / {
root "V:/7-Question";
autoindex on;
autoindex_format json;
}
}
server {
listen 5051;
server_name localhost;
include "includes/www.conf";
}
server {
listen 80;
server_name yoda-dev.*;
include "includes/YODA Viewer.conf";
}
server {
listen 80;
server_name goto-dev.*;
include "includes/Mesa GoTo Viewer.conf";
}
}
#cd "C:\Users\MESYODASVC\AppData\Local\IFXApps\nginx-1.20.1"
#.\nginx -t
#.\nginx -s reload
}