forked from yaso_meth/mih-project
73 lines
1.5 KiB
Nginx Configuration File
73 lines
1.5 KiB
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
server_tokens off;
|
|
charset utf-8;
|
|
|
|
# always redirect to https
|
|
server {
|
|
listen 80 default_server;
|
|
|
|
server_name _;
|
|
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
http2 on;
|
|
# use the certificates
|
|
ssl_certificate /etc/letsencrypt/live/mzansi-innovation-hub.co.za/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/mzansi-innovation-hub.co.za/privkey.pem;
|
|
server_name mzansi-innovation-hub.co.za;
|
|
root /var/www/html;
|
|
index index.php index.html index.htm;
|
|
|
|
# Web App
|
|
location / {
|
|
proxy_pass http://MIH-UX:83/;
|
|
}
|
|
|
|
# API Hub
|
|
location /api/ {
|
|
proxy_pass http://MIH-API-Hub:8080/;
|
|
}
|
|
|
|
#Minio storage
|
|
location /files/ {
|
|
proxy_pass http://MIH-Minio:9000/;
|
|
}
|
|
|
|
location ~ /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
}
|
|
}
|
|
|
|
# events {
|
|
# worker_connections 1024;
|
|
# }
|
|
|
|
# http {
|
|
# server_tokens off;
|
|
# charset utf-8;
|
|
|
|
# # always redirect to https
|
|
# server {
|
|
# listen 80 default_server;
|
|
|
|
# server_name mzansi-innovation-hub.co.za www.mzansi-innovation-hub.co.za;
|
|
|
|
# location / {
|
|
# proxy_pass http://MIH-UX:83/;
|
|
# }
|
|
# location ~ /.well-known/acme-challenge/ {
|
|
# root /var/www/certbot;
|
|
# }
|
|
|
|
# # return 301 https://$host$request_uri;
|
|
# }
|
|
# }
|