Compare commits

..

1 Commits

Author SHA1 Message Date
cc4a0f6bd3 mestsa006.infineon.com 2023-05-10 20:08:13 -07:00
11 changed files with 36 additions and 223 deletions

View File

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

View File

@ -1,23 +0,0 @@
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

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

View File

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

View File

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

View File

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

View File

@ -1,24 +0,0 @@
# 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,40 +0,0 @@
[req]
default_bits = 2048
default_keyfile = laundry.phares3757.redirectme.net.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 = Anthem
organizationName = Organization Name (eg, company)
organizationName_default = Phares
organizationalUnitName = organizationalunit
organizationalUnitName_default = Development
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_default = laundry.phares3757.redirectme.net
commonName_max = 64
[req_ext]
subjectAltName = @alt_names
[v3_ca]
subjectAltName = @alt_names
[alt_names]
DNS.1 = laundry.phares3757.redirectme.net
DNS.2 = dashkiosk.laundry.phares3757.redirectme.net
DNS.3 = gogs.laundry.phares3757.redirectme.net
DNS.4 = nextcloud.laundry.phares3757.redirectme.net
DNS.5 = photoprism.laundry.phares3757.redirectme.net
DNS.6 = pi-hole.laundry.phares3757.redirectme.net
DNS.7 = syncthing.laundry.phares3757.redirectme.net
DNS.8 = beelink.server
DNS.9 = beelink
DNS.10 = localhost
DNS.11 = 127.0.0.1

View File

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

View File

@ -94,8 +94,4 @@ 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;
} }

View File

@ -1,129 +1,35 @@
server { worker_processes 1;
listen 80 default_server; events {
listen [::]:80 default_server; worker_connections 1024;
root /var/www/html; }
index index.html index.htm index.nginx-debian.html; http {
server_name _; include "includes/mime.types";
location / { default_type application/octet-stream;
try_files $uri $uri/ =404; sendfile on;
keepalive_timeout 65;
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 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";
} }
} }
server { #cd "C:\Users\MESYODASVC\AppData\Local\IFXApps\nginx-1.20.1"
ssl_certificate 'laundry.phares3757.redirectme.net.crt'; #.\nginx -t
ssl_certificate_key 'laundry.phares3757.redirectme.net.key'; #.\nginx -s reload
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name laundry.phares3757.redirectme.net;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:80/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares3757.redirectme.net.crt';
ssl_certificate_key 'laundry.phares3757.redirectme.net.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name dashkiosk.laundry.phares3757.redirectme.net;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:9400/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares3757.redirectme.net.crt';
ssl_certificate_key 'laundry.phares3757.redirectme.net.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name gogs.laundry.phares3757.redirectme.net;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:3000/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares3757.redirectme.net.crt';
ssl_certificate_key 'laundry.phares3757.redirectme.net.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name nextcloud.laundry.phares3757.redirectme.net;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8081/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares3757.redirectme.net.crt';
ssl_certificate_key 'laundry.phares3757.redirectme.net.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name photoprism.laundry.phares3757.redirectme.net;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:2342/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares3757.redirectme.net.crt';
ssl_certificate_key 'laundry.phares3757.redirectme.net.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name ~(pi-hole).laundry.phares3757.redirectme.net;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8005/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
ssl_certificate 'laundry.phares3757.redirectme.net.crt';
ssl_certificate_key 'laundry.phares3757.redirectme.net.key';
listen 443 ssl http2;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
listen [::]:443 ssl http2;
server_name syncthing.laundry.phares3757.redirectme.net;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8384/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}