Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created April 1, 2024 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axilaris/2e15f9c0cc8aff2727c39917123d25f4 to your computer and use it in GitHub Desktop.
Save axilaris/2e15f9c0cc8aff2727c39917123d25f4 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name 182.20.4.110 mydomain.io;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/ubuntu/myproj_app/static/;
}
location / {
alias /home/ubuntu/myproj_app/frontend/build/;
}
location /apidoc {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
}
~
2024/04/01 12:37:01 [error] 3618#3618: *128 open() "/home/ubuntu/myproj_app/static/static/drf-yasg/insQ.min.js" failed (13: Permission denied), client: 172.20.1.172, server: 182.20.4.110, request: "GET /static/drf-yasg/insQ.min.js HTTP/1.1", host: "mydomain.io", referrer: "https://mydomain.io/apidoc/"
2024/04/01 12:37:01 [error] 3618#3618: *129 open() "/home/ubuntu/myproj_app/static/static/drf-yasg/immutable.min.js" failed (13: Permission denied), client: 172.20.1.172, server: 182.20.4.110, request: "GET /static/drf-yasg/immutable.min.js HTTP/1.1", host: "mydomain.io", referrer: "https://mydomain.io/apidoc/"
2024/04/01 12:37:01 [error] 3618#3618: *128 open() "/home/ubuntu/myproj_app/static/static/drf-yasg/swagger-ui-dist/favicon-32x32.png" failed (13: Permission denied), client: 172.20.1.172, server: 182.20.4.110, request: "GET /static/drf-yasg/swagger-ui-dist/favicon-32x32.png HTTP/1.1", host: "mydomain.io", referrer: "https://mydomain.io/apidoc/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment