Compare commits

..

4 Commits

Author SHA1 Message Date
22e179840b 443 2025-03-06 12:43:30 -07:00
edd3b82e65 Port change
Quartz testing
2024-08-06 08:44:49 -07:00
41c7d181cd ttf 2024-06-25 09:46:39 -07:00
0f18e65537 iscn5cg3256cps.infineon.com 2024-02-27 09:31:35 -07:00
21 changed files with 375 additions and 135 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_http_version 1.1;
proxy_cache_bypass $http_upgrade;
proxy_pass http://localhost:5555;
proxy_set_header Host $http_host;
proxy_set_header Connection keep-alive;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-Proto https;
}
# 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

@ -0,0 +1,6 @@
location ~* ^.+\.(application|manifest|deploy|msu|msp) {
#root html;
#root "C:\\Users\\mesedasvc\\AppData\\Local\\IFXApps\\nginx-1.20.1\\html";
#root "D:\\ProgramData\\ClickOnce";
root "D:\\ProgramData";
}

View File

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

View File

@ -0,0 +1,8 @@
server {
listen 8008 default_server;
listen [::]:8008 default_server;
## Trun on /cgi-bin/ support to run CGI apps ##
include /etc/nginx/fcgiwrap.conf;
root /var/www/html;
server_name _;
}

21
conf/includes/dex.conf Normal file
View File

@ -0,0 +1,21 @@
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;
# root /var/www/html/637998119172547651;
root "D://Tmp//phares//www";
}
location / {
index index.html index.htm;
# root /var/www/html/637998119172547651;
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

@ -0,0 +1,3 @@
location = /50x.html {
root html;
}

4
conf/includes/html.conf Normal file
View File

@ -0,0 +1,4 @@
location / {
root html;
index index.html index.htm;
}

View File

@ -0,0 +1,33 @@
[req]
default_bits = 2048
default_keyfile = localhost.key
distinguished_name = req_distinguished_name
req_extensions = req_ext
x509_extensions = v3_ca
[req_distinguished_name]
countryName = Country Name (2 letter code)
countryName_default = US
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = Arizona
localityName = Locality Name (eg, city)
localityName_default = Mesa
organizationName = Organization Name (eg, company)
organizationName_default = Infineon Technologies Americas Corp.
organizationalUnitName = organizationalunit
organizationalUnitName_default = Development
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_default = iscn5cg3256cps.infineon.com
commonName_max = 64
[req_ext]
subjectAltName = @alt_names
[v3_ca]
subjectAltName = @alt_names
[alt_names]
DNS.1 = iscn5cg3256cps.infineon.com
DNS.2 = iscn5cg3256cps
DNS.3 = localhost
DNS.4 = 127.0.0.1

View File

@ -0,0 +1,25 @@
-----BEGIN CERTIFICATE-----
MIIEMTCCAxmgAwIBAgIUUi/nacInzoq78JsuzLhWssBY2iQwDQYJKoZIhvcNAQEL
BQAwgZkxCzAJBgNVBAYTAlVTMRAwDgYDVQQIDAdBcml6b25hMQ0wCwYDVQQHDARN
ZXNhMS0wKwYDVQQKDCRJbmZpbmVvbiBUZWNobm9sb2dpZXMgQW1lcmljYXMgQ29y
cC4xFDASBgNVBAsMC0RldmVsb3BtZW50MSQwIgYDVQQDDBtpc2NuNWNnMzI1NmNw
cy5pbmZpbmVvbi5jb20wHhcNMjQwMjI3MTYyNzI0WhcNMjUwMjI2MTYyNzI0WjCB
mTELMAkGA1UEBhMCVVMxEDAOBgNVBAgMB0FyaXpvbmExDTALBgNVBAcMBE1lc2Ex
LTArBgNVBAoMJEluZmluZW9uIFRlY2hub2xvZ2llcyBBbWVyaWNhcyBDb3JwLjEU
MBIGA1UECwwLRGV2ZWxvcG1lbnQxJDAiBgNVBAMMG2lzY241Y2czMjU2Y3BzLmlu
ZmluZW9uLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKYnR9hK
CCBCvENd4nr0RcKsxiSvWJnF+tt6dtxdvRQFc01JTFuslyA8fv33HvIi8hlNF0H9
r3tMQ8G0cR3Fhl4OiryORg7kDSKvHD3dm6w915a08TwumC1+A7u9kB43WwrxsqoC
Afmm+t0F0nKqHjeu8kvMr2szcu08xpwvJGu3Yo1VraHlX/36BVLLg12LUle4A4gw
D3gIJijXOCOkxkPkHx7y7mJUIBrtrQ9O1M3u7H3f2NF7yvwgdK61tHHQQ6CIT6Up
1TIwrPwb23/PXSU+Hv9brYGOSermjaUys6dNssCU6yU/9L7Z3C7QpFomv+NINQ0o
pra1CAHTd5qb5YECAwE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U
k9HyQCMgK19D3E6myR4QrihTP2KSFd+9iZvjdsnkIe8w1G2M3pa0HEdhvgNuEtBE
GuJz6eYUx58snpX/mO4yNPinlA==
-----END PRIVATE KEY-----

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

@ -0,0 +1,47 @@
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|ttf|txt|wav|webp|wmf|wml|wmv|xml|xml)$ {
expires 1d;
index index.html index.htm;
root "L://DevOps";
}
location / {
index index.html index.htm;
# root /var/www/html/637998119172547651;
root "L://DevOps";
# 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;
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
#
# Custom headers and headers various browsers *should* be OK with but aren't
#
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
#
# Tell client that this pre-flight info is valid for 20 days
#
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain; charset=utf-8';
add_header 'Content-Length' 0;
return 204;
}
if ($request_method = 'POST') {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always;
}
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always;
}
}

101
conf/includes/mime.types Normal file
View File

@ -0,0 +1,101 @@
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/webp webp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
font/woff woff;
font/woff2 woff2;
application/java-archive jar war ear;
application/json json;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.apple.mpegurl m3u8;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/vnd.ms-excel xls;
application/vnd.ms-fontobject eot;
application/vnd.ms-powerpoint ppt;
application/vnd.oasis.opendocument.graphics odg;
application/vnd.oasis.opendocument.presentation odp;
application/vnd.oasis.opendocument.spreadsheet ods;
application/vnd.oasis.opendocument.text odt;
application/vnd.openxmlformats-officedocument.presentationml.presentation
pptx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx;
application/vnd.openxmlformats-officedocument.wordprocessingml.document
docx;
application/vnd.wap.wmlc wmlc;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/xspf+xml xspf;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp2t ts;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
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;
}

9
conf/includes/www.conf Normal file
View File

@ -0,0 +1,9 @@
location / {
# root "D://www";
# root "L://Git//jackyzha0-quartz-phares//public";
root "L://DevOps//Mesa_FI//jackyzha0-quartz-infineon//public";
index index.html index.htm;
location / {
try_files $uri $uri.html $uri/ =404;
}
}

View File

@ -0,0 +1,4 @@
location / {
root "D://wwwroot";
try_files $uri $uri/ /index.html =404;
}

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

@ -2,21 +2,57 @@ worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
include "includes/mime.types";
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
# listen 80;
listen 4435 ssl http2;
listen [::]:4435 ssl http2;
server_name localhost;
location / {
#root html;
root "C:\4p_NT";
index index.html index.htm;
autoindex on;
autoindex_format json;
# https://localhost
ssl_certificate "includes/iscn5cg3256cps.infineon.com.crt";
ssl_certificate_key "includes/iscn5cg3256cps.infineon.com.key";
# ssl_password_file "includes/iscn5cg3256cps.infineon.com.pass";
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
# include "includes/html.conf";
include "includes/BaGet.conf";
error_page 500 502 503 504 /50x.html;
include "includes/html-error.conf";
# include "includes/github.conf";
}
server {
listen 5051;
server_name localhost;
include "includes/www.conf";
}
server {
listen 5052;
server_name localhost;
include "includes/dex.conf";
}
server {
listen 5053;
server_name localhost;
include "includes/ProgramData.conf";
}
server {
# listen 5054;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name localhost;
# https://localhost
ssl_certificate "includes/iscn5cg3256cps.infineon.com.crt";
ssl_certificate_key "includes/iscn5cg3256cps.infineon.com.key";
# ssl_password_file "includes/iscn5cg3256cps.infineon.com.pass";
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
include "includes/json.conf";
}
server {
listen 5055;
server_name localhost;
include "includes/wwwroot.conf";
}
}

View File

@ -1,117 +0,0 @@
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}