Blame public/fs/etc/nginx/vhosts.d/git.midipix.org.conf

root@culturestrings 471b9f
server {
root@culturestrings 471b9f
    listen                [::]:80;
root@culturestrings 471b9f
    server_name           git.midipix.org;
root@culturestrings 471b9f
    return                301 https://$server_name$request_uri;
root@culturestrings 471b9f
}
root@culturestrings 471b9f
root@culturestrings 471b9f
server {
root@culturestrings 471b9f
    listen                [::]:443;
root@culturestrings 471b9f
    server_name           git.midipix.org;
root@culturestrings 471b9f
    root                  /srv/www/htdocs;
root@culturestrings 471b9f
root@culturestrings 471b9f
    location /cgit.cgi {
root@culturestrings 471b9f
        rewrite           ^/cgit.cgi(/.*)$ $1 last;
root@culturestrings 471b9f
    }
root@culturestrings 471b9f
root@culturestrings 471b9f
    location / {
root@culturestrings 471b9f
        try_files         $uri @cgit;
root@culturestrings 471b9f
    }
root@culturestrings 471b9f
root@culturestrings 471b9f
    location @cgit {
root@culturestrings 471b9f
        include           uwsgi_params;
root@culturestrings 471b9f
        uwsgi_modifier1   9;
root@culturestrings 471b9f
        uwsgi_pass        unix:/run/uwsgi/cgit.socket;
root@culturestrings 471b9f
root@culturestrings 471b9f
        uwsgi_param       CGIT_CONFIG     "/etc/cgit.d/cgitrc.midipix.org";
root@culturestrings 471b9f
        uwsgi_param       PATH_INFO       $uri;
root@culturestrings 471b9f
        uwsgi_param       QUERY_STRING    $args;
root@culturestrings 471b9f
        uwsgi_param       HTTP_HOST       $server_name;
root@culturestrings 471b9f
        uwsgi_param       SCRIPT_FILENAME $document_root/cgit.cgi;
root@culturestrings 471b9f
    }
root@culturestrings 471b9f
root@culturestrings 471b9f
    ssl_certificate       /etc/nginx/certs.d/culturestrings.org/ssl/fullchain.pem;
root@culturestrings 471b9f
    ssl_certificate_key   /etc/nginx/certs.d/culturestrings.org/ssl/privkey.pem;
root@culturestrings 471b9f
root@culturestrings 471b9f
    include conf.d/ssl_params;
root@culturestrings 471b9f
}