empresa-libre/source/app/empresalibre.conf.example

33 lines
799 B
Plaintext

server {
listen 80;
server_name cfdi.empresalibre.net;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3033;
access_log /var/log/nginx/empresa-libre.access.log;
error_log /var/log/nginx/empresa-libre.error.log;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location /static {
alias /opt/empresa-libre/static;
}
if ($http_user_agent ~* (python|curl) ) {
return 404;
}
# Necesario para Let's Encrypt
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /opt/www;
}
}