115 lines
3.5 KiB
Nginx Configuration File
115 lines
3.5 KiB
Nginx Configuration File
worker_processes 1;
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
http {
|
|
include "includes/mime.types";
|
|
default_type application/octet-stream;
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
server {
|
|
# listen 80;
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name localhost;
|
|
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/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 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/dex.conf";
|
|
}
|
|
server {
|
|
listen 5053;
|
|
server_name localhost;
|
|
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 {
|
|
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";
|
|
}
|
|
}
|
|
# mkdir "L:\DevOps\Mesa_FI"
|
|
# cd "L:\DevOps\Mesa_FI"
|
|
# git clone https://tfs.intra.infineon.com/tfs/ManufacturingIT/Mesa_FI/_git/NGINX-Conf
|
|
# -
|
|
# rmdir /s "C:\Users\phares\AppData\Local\IFXApps\nginx-1.20.1\conf"
|
|
# mklink /J "C:\Users\phares\AppData\Local\IFXApps\nginx-1.20.1\conf" "L:\DevOps\Mesa_FI\NGINX-Conf\conf"
|
|
# -
|
|
# As administrator
|
|
# -
|
|
# cd "C:\Users\phares\AppData\Local\IFXApps\nssm-2.24\win64"
|
|
# nssm install "nginx"
|
|
# -
|
|
# C:\Users\phares\AppData\Local\IFXApps\nginx-1.20.1\nginx.exe
|
|
# C:\Users\phares\AppData\Local\IFXApps\nginx-1.20.1
|
|
# -
|
|
# start nginx
|
|
# C:\Users\phares\AppData\Local\IFXApps\nginx-1.20.1\logs\service.out.log
|
|
# C:\Users\phares\AppData\Local\IFXApps\nginx-1.20.1\logs\service.error.log
|
|
# -
|
|
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
|
|
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\DevOps\Mesa_FI\NGINdeX.io"
|
|
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
|
|
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\DevOps\Mesa_FI\NGINdeX.io"
|
|
# -
|
|
# 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
|
|
# -
|
|
# cd "C:\Users\phares\AppData\Local\IFXApps\nginx-1.20.1"
|
|
# .\nginx -t
|
|
# .\nginx -s reload
|