This commit is contained in:
Digital Studium 2025-05-24 08:17:54 +00:00
parent dac20bd212
commit e7ae80ee66
2 changed files with 24 additions and 0 deletions

15
nginx.conf Normal file
View File

@ -0,0 +1,15 @@
server {
listen 80;
server_name diff.digitalstudium.com;
client_max_body_size 0;
location / {
include uwsgi_params;
uwsgi_pass unix:///tmp/diff.sock;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
}

9
prepare.sh Executable file
View File

@ -0,0 +1,9 @@
apt update && \
apt install -y build-essential \
python3-dev \
python3 \
python3-venv \
certbot \
python3-certbot-nginx