Add role for apis-rilec

This commit is contained in:
Gašper Fele-Žorž 2025-10-23 20:32:48 +02:00
parent 61d5b4b6d8
commit 216deda916
9 changed files with 293 additions and 0 deletions

View file

@ -0,0 +1,25 @@
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name {{ dns_name }};
ssl_certificate /etc/letsencrypt/live/{{ dns_name }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ dns_name }}/privkey.pem;
location @uwsgi {
include uwsgi_params;
uwsgi_pass unix:/run/apis-rilec.socket;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
alias {{ public_root }};
try_files $uri @uwsgi;
}
location /media/ {
alias {{ public_root }}/media/;
}
location /static/ {
alias {{ public_root }}/static/;
}
}