Add scripts/minio/nginx-api-proxy-template.conf
Code Quality Test / Quality-Check (push) Successful in 6s Details
Environment Setup Test / Setup (push) Successful in 1m42s Details
Build Docker Image for Actions / Check-If-Rebuild (push) Successful in 9s Details
Build Docker Image for Actions / Build-Image (push) Has been skipped Details

main
drunkendog 2023-12-20 23:45:30 +00:00
parent 2a8bd629e9
commit d848290237
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
server {
listen 443;
server_name #serverNameVar;
ssl on;
ssl_certificate /etc/letsencrypt/live/#serverNameVar/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/#serverNameVar/privkey.pem;
location / {
proxy_pass http://172.30.26.1:9000/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 300;
# Default is HTTP/1, keepalive is only enabled in HTTP/1.1
proxy_http_version 1.1;
proxy_set_header Connection "";
chunked_transfer_encoding off;
}
}
server {
listen 80;
server_name #serverNameVar;
location / {
return 301 https://#serverNameVar$request_uri;
}
}