Compare commits
2 Commits
CDE4
...
mestsa07ec
Author | SHA1 | Date | |
---|---|---|---|
c6627e4267 | |||
1d8b2cfa65 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
conf/includes/localhost.crt
|
||||||
|
conf/includes/localhost.key
|
1
conf/includes/Archive.conf
Normal file
1
conf/includes/Archive.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
location / { proxy_pass http://localhost:5006; }
|
23
conf/includes/BaGet.conf
Normal file
23
conf/includes/BaGet.conf
Normal 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
|
||||||
|
# }
|
1
conf/includes/EAF-Viewer.Server.conf
Normal file
1
conf/includes/EAF-Viewer.Server.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
location / { proxy_pass http://localhost:5010; }
|
2
conf/includes/EDA Viewer.conf
Normal file
2
conf/includes/EDA Viewer.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
location / { proxy_pass http://localhost:5003; }
|
||||||
|
# http://localhost:5003/Background?set_is_primary_instance=false&a
|
8
conf/includes/Gogs.conf
Normal file
8
conf/includes/Gogs.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
location / {
|
||||||
|
proxy_hide_header Authorization;
|
||||||
|
if ($http_Authorization != "Basic asdf") {
|
||||||
|
return 401;
|
||||||
|
}
|
||||||
|
proxy_set_header Authorization "Basic asdf";
|
||||||
|
proxy_pass http://localhost:3000;
|
||||||
|
}
|
6
conf/includes/ProgramData.conf
Normal file
6
conf/includes/ProgramData.conf
Normal 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";
|
||||||
|
}
|
1
conf/includes/Viewer.conf
Normal file
1
conf/includes/Viewer.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
location / { proxy_pass http://localhost:5004; }
|
25
conf/includes/code-server.conf
Normal file
25
conf/includes/code-server.conf
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
server {
|
||||||
|
server_name phares3757.ddns.net;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:8007/;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection upgrade;
|
||||||
|
proxy_set_header Accept-Encoding gzip;
|
||||||
|
}
|
||||||
|
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
||||||
|
listen 443 ssl; # managed by Certbot
|
||||||
|
ssl_certificate /etc/letsencrypt/live/phares3757.ddns.net/fullchain.pem; # managed by Certbot
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/phares3757.ddns.net/privkey.pem; # managed by Certbot
|
||||||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
if ($host = phares3757.ddns.net) {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
} # managed by Certbot
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name phares3757.ddns.net;
|
||||||
|
return 404; # managed by Certbot
|
||||||
|
}
|
8
conf/includes/default.conf
Normal file
8
conf/includes/default.conf
Normal 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 _;
|
||||||
|
}
|
29
conf/includes/dex.conf
Normal file
29
conf/includes/dex.conf
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
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;
|
||||||
|
# ln -s /etc/nginx/sites-available/json /etc/nginx/sites-enabled/
|
||||||
|
# ln -s /srv/samba/share/637998119172547651 /var/www/html/637998119172547651
|
||||||
|
# ln -s /var/www/html/NGINdeX.io /var/www/html/637998119172547651/NGINdeX.io
|
||||||
|
# ln -s /srv/git /var/www/html/637998119172547651/git
|
||||||
|
# root /var/www/html/637998119172547651;
|
||||||
|
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
|
||||||
|
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\Git\NGINdeX.io"
|
||||||
|
root "D://Tmp//phares//www";
|
||||||
|
}
|
||||||
|
location / {
|
||||||
|
index index.html index.htm;
|
||||||
|
# root /var/www/html/637998119172547651;
|
||||||
|
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
|
||||||
|
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\Git\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;
|
||||||
|
}
|
31
conf/includes/ec-server.cer
Normal file
31
conf/includes/ec-server.cer
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFWDCCBECgAwIBAgITEQAJ/3uYCRkLXZxaDgAAAAn/ezANBgkqhkiG9w0BAQsF
|
||||||
|
ADBZMQswCQYDVQQGEwJERTEhMB8GA1UECgwYSW5maW5lb24gVGVjaG5vbG9naWVz
|
||||||
|
IEFHMScwJQYDVQQDDB5JbmZpbmVvbiBUZWNobm9sb2dpZXMgQUcgRUMgQ0EwHhcN
|
||||||
|
MjMwMTI1MTkyODQxWhcNMjUwMTI0MTkyODQxWjAeMRwwGgYDVQQDDBNtZXN0c2Ew
|
||||||
|
N2VjLmVjLmxvY2FsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA38Ko
|
||||||
|
D0sme6AQZH/b07SJ9QwQBb0WIiW5Y4L/XCOHnPuXXde/kvgXpAMwvCa2ccB17boj
|
||||||
|
DJ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MsREM9bG9jYWw/Y2VydGlmaWNh
|
||||||
|
dGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNSTERpc3RyaWJ1dGlv
|
||||||
|
blBvaW50hiBodHRwOi8vY3JsLmVjLmxvY2FsL2NybC9FY0NBLmNybDANBgkqhkiG
|
||||||
|
9w0BAQsFAAOCAQEAYrVZucfWpS4CscR/WH+8vUtH7wH1peOpRYPJm4x2ABpP33a/
|
||||||
|
z4jHwqLDrYqYE7syTvq1ffmV7FW8rFx7ArN/0KG1o1BM/BPduN4gihsuzgMZQyCH
|
||||||
|
Ewps6WBWMxPaxJC48tcSSTXq+NVQgZoNFi2957cWaoXFlmAhq8Npr4yE9aArEqkY
|
||||||
|
wTKVjadxw1oUGXYd4pkr2ig6IdgW6jVQy3iJxp6c34mMw4bVngEB92Mp2zZCxohd
|
||||||
|
Kwfugh+zWZU81xXOGshYE+9YBIg6cxJjGZkZwiOk/AimlAuw4qFLt9wGDaJ7/pnt
|
||||||
|
x8c68811JnzFkf2fnpUQDZRL2eg84UvNJ14W8Q==
|
||||||
|
-----END CERTIFICATE-----
|
37
conf/includes/ec-server.crt
Normal file
37
conf/includes/ec-server.crt
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
Bag Attributes
|
||||||
|
localKeyID: 01 00 00 00
|
||||||
|
subject=CN = mestsa07ec.ec.local
|
||||||
|
|
||||||
|
issuer=C = DE, O = Infineon Technologies AG, CN = Infineon Technologies AG EC CA
|
||||||
|
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFWDCCBECgAwIBAgITEQAJ/3uYCRkLXZxaDgAAAAn/ezANBgkqhkiG9w0BAQsF
|
||||||
|
ADBZMQswCQYDVQQGEwJERTEhMB8GA1UECgwYSW5maW5lb24gVGVjaG5vbG9naWVz
|
||||||
|
IEFHMScwJQYDVQQDDB5JbmZpbmVvbiBUZWNobm9sb2dpZXMgQUcgRUMgQ0EwHhcN
|
||||||
|
MjMwMTI1MTky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H0oIHxhoHMbGRhcDov
|
||||||
|
Ly9DTj1JbmZpbmVvbiUyMFRlY2hub2xvZ2llcyUyMEFHJTIwRUMlMjBDQSxDTj1F
|
||||||
|
TFNTQUVDMDIsQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNl
|
||||||
|
cnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9RUMsREM9bG9jYWw/Y2VydGlmaWNh
|
||||||
|
dGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNSTERpc3RyaWJ1dGlv
|
||||||
|
blBvaW50hiBodHRwOi8vY3JsLmVjLmxvY2FsL2NybC9FY0NBLmNybDANBgkqhkiG
|
||||||
|
9w0BAQsFAAOCAQEAYrVZucfWpS4CscR/WH+8vUtH7wH1peOpRYPJm4x2ABpP33a/
|
||||||
|
z4jHwqLDrYqYE7syTvq1ffmV7FW8rFx7ArN/0KG1o1BM/BPduN4gihsuzgMZQyCH
|
||||||
|
Ewps6WBWMxPaxJC48tcSSTXq+NVQgZoNFi2957cWaoXFlmAhq8Npr4yE9aArEqkY
|
||||||
|
wTKVjadxw1oUGXYd4pkr2ig6IdgW6jVQy3iJxp6c34mMw4bVngEB92Mp2zZCxohd
|
||||||
|
Kwfugh+zWZU81xXOGshYE+9YBIg6cxJjGZkZwiOk/AimlAuw4qFLt9wGDaJ7/pnt
|
||||||
|
x8c68811JnzFkf2fnpUQDZRL2eg84UvNJ14W8Q==
|
||||||
|
-----END CERTIFICATE-----
|
37
conf/includes/ec-server.key
Normal file
37
conf/includes/ec-server.key
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
Bag Attributes
|
||||||
|
Microsoft Local Key set: <No Values>
|
||||||
|
localKeyID: 01 00 00 00
|
||||||
|
Microsoft CSP Name: Microsoft RSA SChannel Cryptographic Provider
|
||||||
|
friendlyName: te-InfineonECServer-0ebec69d-5716-4924-bd1a-35b09db88d23
|
||||||
|
Key Attributes
|
||||||
|
X509v3 Key Usage: 10
|
||||||
|
-----BEGIN ENCRYPTED PRIVATE KEY-----
|
||||||
|
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
|
||||||
|
bw8aA212iVGRtKKoZu9nzg==
|
||||||
|
-----END ENCRYPTED PRIVATE KEY-----
|
1
conf/includes/ec-server.pass
Normal file
1
conf/includes/ec-server.pass
Normal file
@ -0,0 +1 @@
|
|||||||
|
nocert
|
BIN
conf/includes/ec-server.pfx
Normal file
BIN
conf/includes/ec-server.pfx
Normal file
Binary file not shown.
3
conf/includes/html-error.conf
Normal file
3
conf/includes/html-error.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
location = /50x.html {
|
||||||
|
root html;
|
||||||
|
}
|
4
conf/includes/html.conf
Normal file
4
conf/includes/html.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
location / {
|
||||||
|
root html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
29
conf/includes/json.conf
Normal file
29
conf/includes/json.conf
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
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;
|
||||||
|
# ln -s /etc/nginx/sites-available/json /etc/nginx/sites-enabled/
|
||||||
|
# ln -s /srv/samba/share/637998119172547651 /var/www/html/637998119172547651
|
||||||
|
# ln -s /var/www/html/NGINdeX.io /var/www/html/637998119172547651/NGINdeX.io
|
||||||
|
# ln -s /srv/git /var/www/html/637998119172547651/git
|
||||||
|
# root /var/www/html/637998119172547651;
|
||||||
|
# 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;
|
||||||
|
# root /var/www/html/637998119172547651;
|
||||||
|
# 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;
|
||||||
|
}
|
42
conf/includes/localhost.conf
Normal file
42
conf/includes/localhost.conf
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
[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 = localhost
|
||||||
|
organizationalUnitName = organizationalunit
|
||||||
|
organizationalUnitName_default = Development
|
||||||
|
commonName = Common Name (e.g. server FQDN or YOUR name)
|
||||||
|
commonName_default = eaf-staging.mes.infineon.com
|
||||||
|
commonName_max = 64
|
||||||
|
|
||||||
|
[req_ext]
|
||||||
|
subjectAltName = @alt_names
|
||||||
|
|
||||||
|
[v3_ca]
|
||||||
|
subjectAltName = @alt_names
|
||||||
|
|
||||||
|
[alt_names]
|
||||||
|
DNS.1 = eaf-staging.mes.infineon.com
|
||||||
|
DNS.2 = http://mestsa07ec.ec.local/
|
||||||
|
DNS.3 = localhost
|
||||||
|
DNS.4 = 127.0.0.1
|
||||||
|
|
||||||
|
# https://webscoot.io/blog/create-self-signed-certificate-ubuntu-windows-nginx/
|
||||||
|
# cd "C:\Program Files\Git\usr\bin"
|
||||||
|
# openssl
|
||||||
|
# req -x509 -nodes -days 365 -newkey rsa:2048 -keyout L:\Git\NGINX-Conf\conf\includes\localhost.key -out L:\Git\NGINX-Conf\conf\includes\localhost.crt -config L:\Git\NGINX-Conf\conf\includes\localhost.conf
|
||||||
|
# openssl
|
||||||
|
# pkcs12 -in L:\git\NGINX-Conf\conf\includes\ec-server.pfx -nocerts -out L:\Git\NGINX-Conf\conf\includes\ec-server.key
|
||||||
|
# openssl
|
||||||
|
# pkcs12 -in L:\git\NGINX-Conf\conf\includes\ec-server.pfx -clcerts -nokeys -out L:\Git\NGINX-Conf\conf\includes\ec-server.crt
|
101
conf/includes/mime.types
Normal file
101
conf/includes/mime.types
Normal 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;
|
||||||
|
}
|
4
conf/includes/www.conf
Normal file
4
conf/includes/www.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
location / {
|
||||||
|
root "D://www";
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
4
conf/includes/wwwroot.conf
Normal file
4
conf/includes/wwwroot.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
location / {
|
||||||
|
root "D://wwwroot";
|
||||||
|
try_files $uri $uri/ /index.html =404;
|
||||||
|
}
|
@ -94,4 +94,8 @@ types {
|
|||||||
video/x-ms-asf asx asf;
|
video/x-ms-asf asx asf;
|
||||||
video/x-ms-wmv wmv;
|
video/x-ms-wmv wmv;
|
||||||
video/x-msvideo avi;
|
video/x-msvideo avi;
|
||||||
|
|
||||||
|
application/x-ms-application application;
|
||||||
|
application/x-ms-manifest manifest;
|
||||||
|
application/octet-stream deploy;
|
||||||
}
|
}
|
||||||
|
@ -2,21 +2,92 @@ worker_processes 1;
|
|||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
include mime.types;
|
include "includes/mime.types";
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
listen 443 ssl http2;
|
||||||
location / {
|
listen [::]:443 ssl http2;
|
||||||
#root html;
|
server_name *.mes.infineon.com;
|
||||||
root "C:\4p_NT";
|
# http://eaf-staging.mes.infineon.com/Background?set_is_primary_instance=true
|
||||||
index index.html index.htm;
|
# ssl_certificate "includes/ec-server.cer";
|
||||||
autoindex on;
|
ssl_certificate "includes/ec-server.crt";
|
||||||
autoindex_format json;
|
ssl_certificate_key "includes/ec-server.key";
|
||||||
|
ssl_password_file "includes/ec-server.pass";
|
||||||
|
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
|
||||||
|
include "includes/EAF-Viewer.Server.conf";
|
||||||
}
|
}
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
server_name mestsa07ec.*;
|
||||||
|
# http://mestsa07ec.infineon.com/Background?set_is_primary_instance=true&a
|
||||||
|
# ssl_certificate "includes/localhost.crt";
|
||||||
|
# ssl_certificate_key "includes/localhost.key";
|
||||||
|
# ssl_certificate "includes/ec-server.cer";
|
||||||
|
ssl_certificate "includes/ec-server.crt";
|
||||||
|
ssl_certificate_key "includes/ec-server.key";
|
||||||
|
ssl_password_file "includes/ec-server.pass";
|
||||||
|
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
|
||||||
|
include "includes/EDA Viewer.conf";
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 5050;
|
||||||
|
server_name localhost;
|
||||||
|
include "includes/html.conf";
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
include "includes/html-error.conf";
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 4430;
|
||||||
|
server_name iscn5cg1325c0x.infineon.com;
|
||||||
|
include "includes/BaGet.conf";
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 5051;
|
||||||
|
server_name localhost;
|
||||||
|
include "includes/www.conf";
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 5052;
|
||||||
|
server_name localhost;
|
||||||
|
include "includes/json.conf";
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 5053;
|
||||||
|
server_name localhost;
|
||||||
|
include "includes/ProgramData.conf";
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 8011;
|
||||||
|
server_name localhost;
|
||||||
|
include "includes/Gogs.conf";
|
||||||
|
}
|
||||||
|
# server {
|
||||||
|
# listen 8080;
|
||||||
|
# server_name ~(oi-metrology-viewer-archive).mes.infineon.com;
|
||||||
|
# location / {
|
||||||
|
# include "includes/Archive.conf";
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
# server {
|
||||||
|
# listen 8080;
|
||||||
|
# server_name ~(oi-metrology-viewer-prod).mes.infineon.com;
|
||||||
|
# location / {
|
||||||
|
# include "includes/Viewer.conf";
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
server {
|
||||||
|
listen 8088;
|
||||||
|
server_name *.mes.infineon.com;
|
||||||
|
include "includes/EAF-Viewer.Server.conf";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# mklink /J "C:\Users\mikep\AppData\Local\PharesApps\nginx-1.20.1\conf" "L:\Git\NGINX-Conf\conf"
|
||||||
|
# cd "C:\Users\ECMESEAF\AppData\Local\IFXApps\nginx-1.20.1"
|
||||||
|
# .\nginx -t
|
||||||
|
# .\nginx -s reload
|
||||||
|
@ -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;
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
|
||||||
}
|
|
Reference in New Issue
Block a user