diff --git a/.gitignore b/.gitignore index afaf04f..3dc9bc1 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,6 @@ cache/ credenciales.conf *.sqlite *.sql +*.service rfc.db diff --git a/source/app/empresalibre.conf.example b/source/app/empresalibre.conf.example new file mode 100644 index 0000000..f2aaa1f --- /dev/null +++ b/source/app/empresalibre.conf.example @@ -0,0 +1,28 @@ +server { + listen 80 default_server; + 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; + } +} \ No newline at end of file