cert for ai
This commit is contained in:
124
nginx/nginx.conf
124
nginx/nginx.conf
@@ -123,37 +123,6 @@ http {
|
|||||||
server_name ai.mzansi-innovation-hub.co.za;
|
server_name ai.mzansi-innovation-hub.co.za;
|
||||||
|
|
||||||
# # #Web App
|
# # #Web App
|
||||||
# location / {
|
|
||||||
# proxy_pass http://MIH-API-Hub:8080/;
|
|
||||||
# }
|
|
||||||
|
|
||||||
# location ~ /.well-known/acme-challenge/ {
|
|
||||||
# root /var/www/certbot;
|
|
||||||
# }
|
|
||||||
|
|
||||||
return 301 https://ai.mzansi-innovation-hub.co.za$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
http2 on;
|
|
||||||
# use the certificates
|
|
||||||
ssl_certificate /etc/letsencrypt/live/app.mzansi-innovation-hub.co.za/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/app.mzansi-innovation-hub.co.za/privkey.pem;
|
|
||||||
server_name ai.mzansi-innovation-hub.co.za;
|
|
||||||
root /var/www/html;
|
|
||||||
index index.php index.html index.htm;
|
|
||||||
|
|
||||||
# To allow special characters in headers
|
|
||||||
ignore_invalid_headers off;
|
|
||||||
# Allow any size file to be uploaded.
|
|
||||||
# Set to a value such as 1000m; to restrict file size to a specific value
|
|
||||||
client_max_body_size 0;
|
|
||||||
# To disable buffering
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_request_buffering off;
|
|
||||||
|
|
||||||
# Web Api
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://MIH-AI:11434/;
|
proxy_pass http://MIH-AI:11434/;
|
||||||
}
|
}
|
||||||
@@ -161,8 +130,39 @@ http {
|
|||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# return 301 https://ai.mzansi-innovation-hub.co.za$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# server {
|
||||||
|
# listen 443 ssl;
|
||||||
|
# http2 on;
|
||||||
|
# # use the certificates
|
||||||
|
# ssl_certificate /etc/letsencrypt/live/app.mzansi-innovation-hub.co.za/fullchain.pem;
|
||||||
|
# ssl_certificate_key /etc/letsencrypt/live/app.mzansi-innovation-hub.co.za/privkey.pem;
|
||||||
|
# server_name ai.mzansi-innovation-hub.co.za;
|
||||||
|
# root /var/www/html;
|
||||||
|
# index index.php index.html index.htm;
|
||||||
|
|
||||||
|
# # To allow special characters in headers
|
||||||
|
# ignore_invalid_headers off;
|
||||||
|
# # Allow any size file to be uploaded.
|
||||||
|
# # Set to a value such as 1000m; to restrict file size to a specific value
|
||||||
|
# client_max_body_size 0;
|
||||||
|
# # To disable buffering
|
||||||
|
# proxy_buffering off;
|
||||||
|
# proxy_request_buffering off;
|
||||||
|
|
||||||
|
# # Web Api
|
||||||
|
# location / {
|
||||||
|
# proxy_pass http://MIH-AI:11434/;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location ~ /.well-known/acme-challenge/ {
|
||||||
|
# root /var/www/certbot;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
||||||
#================Monitor Server================
|
#================Monitor Server================
|
||||||
server {
|
server {
|
||||||
@@ -171,37 +171,6 @@ http {
|
|||||||
server_name monitor.mzansi-innovation-hub.co.za;
|
server_name monitor.mzansi-innovation-hub.co.za;
|
||||||
|
|
||||||
# # #Web App
|
# # #Web App
|
||||||
# location / {
|
|
||||||
# proxy_pass http://MIH-Monitor:9443/;
|
|
||||||
# }
|
|
||||||
|
|
||||||
# location ~ /.well-known/acme-challenge/ {
|
|
||||||
# root /var/www/certbot;
|
|
||||||
# }
|
|
||||||
|
|
||||||
return 301 https://monitor.mzansi-innovation-hub.co.za$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
http2 on;
|
|
||||||
# use the certificates
|
|
||||||
ssl_certificate /etc/letsencrypt/live/app.mzansi-innovation-hub.co.za/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/app.mzansi-innovation-hub.co.za/privkey.pem;
|
|
||||||
server_name monitor.mzansi-innovation-hub.co.za;
|
|
||||||
root /var/www/html;
|
|
||||||
index index.php index.html index.htm;
|
|
||||||
|
|
||||||
# To allow special characters in headers
|
|
||||||
ignore_invalid_headers off;
|
|
||||||
# Allow any size file to be uploaded.
|
|
||||||
# Set to a value such as 1000m; to restrict file size to a specific value
|
|
||||||
client_max_body_size 0;
|
|
||||||
# To disable buffering
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_request_buffering off;
|
|
||||||
|
|
||||||
# Web Api
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://MIH-Monitor:9443/;
|
proxy_pass http://MIH-Monitor:9443/;
|
||||||
}
|
}
|
||||||
@@ -209,8 +178,39 @@ http {
|
|||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# return 301 https://monitor.mzansi-innovation-hub.co.za$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# server {
|
||||||
|
# listen 443 ssl;
|
||||||
|
# http2 on;
|
||||||
|
# # use the certificates
|
||||||
|
# ssl_certificate /etc/letsencrypt/live/app.mzansi-innovation-hub.co.za/fullchain.pem;
|
||||||
|
# ssl_certificate_key /etc/letsencrypt/live/app.mzansi-innovation-hub.co.za/privkey.pem;
|
||||||
|
# server_name monitor.mzansi-innovation-hub.co.za;
|
||||||
|
# root /var/www/html;
|
||||||
|
# index index.php index.html index.htm;
|
||||||
|
|
||||||
|
# # To allow special characters in headers
|
||||||
|
# ignore_invalid_headers off;
|
||||||
|
# # Allow any size file to be uploaded.
|
||||||
|
# # Set to a value such as 1000m; to restrict file size to a specific value
|
||||||
|
# client_max_body_size 0;
|
||||||
|
# # To disable buffering
|
||||||
|
# proxy_buffering off;
|
||||||
|
# proxy_request_buffering off;
|
||||||
|
|
||||||
|
# # Web Api
|
||||||
|
# location / {
|
||||||
|
# proxy_pass http://MIH-Monitor:9443/;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location ~ /.well-known/acme-challenge/ {
|
||||||
|
# root /var/www/certbot;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
#================File Server================
|
#================File Server================
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|||||||
Reference in New Issue
Block a user