EdulabFrontend / nginx.conf
rinogeek's picture
Initial commit: EduLab Frontend for Hugging Face Spaces
aa6ef1d
raw
history blame contribute delete
546 Bytes
server {
listen 7860;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
# Configuration pour le cache des fichiers statiques
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
root /usr/share/nginx/html;
expires 30d;
add_header Cache-Control "public, no-transform";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}