Agregar ejemplo para configuracion de nginx

This commit is contained in:
Mauricio Baeza 2018-01-11 13:41:19 -06:00
parent 4e98593e61
commit 752e0f27ad
2 changed files with 29 additions and 0 deletions

1
.gitignore vendored
View File

@ -19,5 +19,6 @@ cache/
credenciales.conf
*.sqlite
*.sql
*.service
rfc.db

View File

@ -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;
}
}