Agregar ejemplo para configuracion de nginx
This commit is contained in:
parent
4e98593e61
commit
752e0f27ad
|
@ -19,5 +19,6 @@ cache/
|
||||||
credenciales.conf
|
credenciales.conf
|
||||||
*.sqlite
|
*.sqlite
|
||||||
*.sql
|
*.sql
|
||||||
|
*.service
|
||||||
rfc.db
|
rfc.db
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue