# FlowPRO NG NIS2 — APT Repository Nginx Config
# Install on repo.flowpro.eu server:
#   cp nginx-repo.conf /etc/nginx/sites-available/repo.flowpro.eu
#   ln -sf /etc/nginx/sites-available/repo.flowpro.eu /etc/nginx/sites-enabled/
#   nginx -t && systemctl reload nginx

server {
    listen 80;
    server_name repo.flowpro.eu;

    root /var/www/repo.flowpro.eu;
    autoindex on;

    # Package files
    location / {
        try_files $uri $uri/ =404;
    }

    # GPG key
    location /gpg/ {
        add_header Content-Type application/pgp-keys;
    }

    # Bootstrap script
    location = /install.sh {
        add_header Content-Type text/plain;
    }
}
