This commit is contained in:
Mike Phares 2022-12-23 11:54:54 -07:00
parent 39e2552173
commit 63276d53aa
5 changed files with 55 additions and 11 deletions

29
conf/includes/dex.conf Normal file
View 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;
}

View File

@ -7,23 +7,23 @@ location ~* .(3gp|apng|avi|avif|bmp|css|cur|flv|gif|htm|html|ico|jfif|jpeg|jpg|j
# ln -s /srv/git /var/www/html/637998119172547651/git # ln -s /srv/git /var/www/html/637998119172547651/git
# root /var/www/html/637998119172547651; # root /var/www/html/637998119172547651;
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures" # mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\GitHub\NGINdeX.io" # mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\Git\NGINdeX.io"
root "D://Tmp//phares//www"; root "D://Tmp//phares//www";
} }
location / { location / {
index index.html index.htm; index index.html index.htm;
# root /var/www/html/637998119172547651; # root /var/www/html/637998119172547651;
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures" # mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\GitHub\NGINdeX.io" # mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\Git\NGINdeX.io"
root "D://Tmp//phares//www"; root "D://Tmp//phares//www";
# First attempt to serve request as file, then # First attempt to serve request as file, then
autoindex on; autoindex on;
# Send the data in JSON # Send the data in JSON
autoindex_format json; autoindex_format json;
addition_types application/json; # addition_types application/json;
# Calling from SERVERNAME/autoindex/* # Calling from SERVERNAME/autoindex/*
add_before_body /NGINdeX.io/header.html; # add_before_body /NGINdeX.io/header.html;
add_after_body /NGINdeX.io/footer.html; # add_after_body /NGINdeX.io/footer.html;
# Need to tell that we are sending HTML # Need to tell that we are sending HTML
add_header Content-Type text/html; # add_header Content-Type text/html;
} }

View File

@ -13,11 +13,11 @@ stateOrProvinceName_default = Arizona
localityName = Locality Name (eg, city) localityName = Locality Name (eg, city)
localityName_default = Mesa localityName_default = Mesa
organizationName = Organization Name (eg, company) organizationName = Organization Name (eg, company)
organizationName_default = localhost organizationName_default = Infineon Technologies Americas Corp.
organizationalUnitName = organizationalunit organizationalUnitName = organizationalunit
organizationalUnitName_default = Development organizationalUnitName_default = Development
commonName = Common Name (e.g. server FQDN or YOUR name) commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_default = localhost commonName_default = example.com
commonName_max = 64 commonName_max = 64
[req_ext] [req_ext]
@ -27,8 +27,9 @@ subjectAltName = @alt_names
subjectAltName = @alt_names subjectAltName = @alt_names
[alt_names] [alt_names]
DNS.1 = localhost DNS.1 = example.com
DNS.2 = 127.0.0.1 DNS.2 = localhost
DNS.3 = 127.0.0.1
# https://webscoot.io/blog/create-self-signed-certificate-ubuntu-windows-nginx/ # https://webscoot.io/blog/create-self-signed-certificate-ubuntu-windows-nginx/
# cd "C:\Program Files\Git\usr\bin" # cd "C:\Program Files\Git\usr\bin"

View File

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

View File

@ -33,13 +33,23 @@ http {
server { server {
listen 5052; listen 5052;
server_name localhost; server_name localhost;
include "includes/json.conf"; include "includes/dex.conf";
} }
server { server {
listen 5053; listen 5053;
server_name localhost; server_name localhost;
include "includes/ProgramData.conf"; include "includes/ProgramData.conf";
} }
server {
listen 5054;
server_name localhost;
include "includes/json.conf";
}
server {
listen 5055;
server_name localhost;
include "includes/wwwroot.conf";
}
server { server {
listen 8011; listen 8011;
server_name localhost; server_name localhost;