.
This commit is contained in:
@@ -110,7 +110,7 @@ services:
|
|||||||
- certbotConf:/etc/letsencrypt
|
- certbotConf:/etc/letsencrypt
|
||||||
- certbotChall:/var/www/certbot
|
- certbotChall:/var/www/certbot
|
||||||
#command: certonly --test-cert --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za -d www.mzansi-innovation-hub.co.za --agree-tos
|
#command: certonly --test-cert --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za -d www.mzansi-innovation-hub.co.za --agree-tos
|
||||||
command: certonly --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za -d www.mzansi-innovation-hub.co.za --agree-tos
|
command: certonly --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za -d app.mzansi-innovation-hub.co.za -d app.mzansi-innovation-hub.co.za --agree-tos
|
||||||
networks:
|
networks:
|
||||||
- MIH-network
|
- MIH-network
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
112
nginx/nginx.conf
112
nginx/nginx.conf
@@ -22,66 +22,53 @@ http {
|
|||||||
|
|
||||||
server_name app.mzansi-innovation-hub.co.za;
|
server_name app.mzansi-innovation-hub.co.za;
|
||||||
|
|
||||||
return 301 https://app.mzansi-innovation-hub.co.za$request_uri;
|
Web App
|
||||||
}
|
|
||||||
|
|
||||||
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 app.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 App
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://MIH-UX:83/;
|
proxy_pass http://MIH-UX:83/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# return 301 https://app.mzansi-innovation-hub.co.za$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 app.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 App
|
||||||
|
# location / {
|
||||||
|
# proxy_pass http://MIH-UX:83/;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location ~ /.well-known/acme-challenge/ {
|
||||||
|
# root /var/www/certbot;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
server_name api.mzansi-innovation-hub.co.za;
|
server_name api.mzansi-innovation-hub.co.za;
|
||||||
|
|
||||||
return 301 https://api.mzansi-innovation-hub.co.za$request_uri;
|
Web App
|
||||||
}
|
|
||||||
|
|
||||||
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 api.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 App
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://MIH-API-Hub:8080/;
|
proxy_pass http://MIH-API-Hub:8080/;
|
||||||
}
|
}
|
||||||
@@ -89,7 +76,38 @@ http {
|
|||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# return 301 https://api.mzansi-innovation-hub.co.za$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 api.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 App
|
||||||
|
# location / {
|
||||||
|
# proxy_pass http://MIH-API-Hub:8080/;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location ~ /.well-known/acme-challenge/ {
|
||||||
|
# root /var/www/certbot;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
# # API Hub
|
# # API Hub
|
||||||
|
|||||||
Reference in New Issue
Block a user