Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebraHr committed Sep 23, 2023
1 parent 890f56d commit ffd39f5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions infra/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ server {
alias /app/media/;
}

location /static/admin/ {
location /static/{
root /staticfiles/;
}

location /static/rest-framework/ {
root /staticfiles/;
}
# location /static/rest-framework/ {
# root /staticfiles/;
# }

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri /index.html;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# location / {
# root /usr/share/nginx/html;
# index index.html index.htm;
# try_files $uri /index.html;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# }
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/html/frontend/;
Expand Down

0 comments on commit ffd39f5

Please sign in to comment.