Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
kimachinskiy committed Oct 8, 2023
1 parent cef68ee commit e81cf45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions FrontEnd/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ server {
}

# Django Admin
location /api/admin/ {
location /admin/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://api-dev:8000/admin/;
proxy_redirect off;
}

location /static/ {
location /apistatic/ {
autoindex on;
alias /home/forum/app/public/static/;
}

location /media/ {
location /apimedia/ {
autoindex on;
alias /home/forum/app/public/media/;
}
Expand Down
4 changes: 2 additions & 2 deletions forum/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@
# https://docs.djangoproject.com/en/4.1/howto/static-files/


STATIC_URL = 'static/'
STATIC_URL = 'apistatic/'
STATIC_ROOT = '/home/forum/app/public/static/'
MEDIA_URL = 'media/'
MEDIA_URL = 'apimedia/'
MEDIA_ROOT = '/home/forum/app/public/media/'

# STATICFILES_DIRS = (
Expand Down

0 comments on commit e81cf45

Please sign in to comment.