mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-13 22:48:20 +00:00
6a68c4cc20
This commit introduces many changes: - a fully functional minio plugin for local installation - an almost-functional native k8s deployment - a new way to process configuration, better suited to plugins There are still many things to do: - get rid of all the TODOs - get a fully functional minio plugin for k8s - add documentation for pluginso - ...
27 lines
807 B
Plaintext
27 lines
807 B
Plaintext
# MinIO public service
|
|
upstream minio-backend {
|
|
server minio:9000 fail_timeout=0;
|
|
}
|
|
server {
|
|
{% if ACTIVATE_HTTPS %}listen 443 {{ "" if WEB_PROXY else "ssl" }};{% else %}listen 80;{% endif %}
|
|
server_name minio.localhost {{ MINIO_HOST }};
|
|
|
|
{% if ACTIVATE_HTTPS and not WEB_PROXY %}
|
|
ssl_certificate /etc/letsencrypt/live/{{ MINIO_HOST }}/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ MINIO_HOST }}/privkey.pem;
|
|
{% endif %}
|
|
|
|
# Disables server version feedback on pages and in headers
|
|
server_tokens off;
|
|
|
|
location / {
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Port $server_port;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Host $http_host;
|
|
proxy_redirect off;
|
|
|
|
proxy_pass http://minio-backend;
|
|
}
|
|
}
|