fix: add redirects for admin and API endpoints in Nginx configuration
This commit is contained in:
@@ -30,6 +30,14 @@ http {
|
|||||||
listen 7080;
|
listen 7080;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
|
location = /mayo-manager/admin {
|
||||||
|
return 301 /mayo-manager/admin/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /mayo-manager/api {
|
||||||
|
return 301 /mayo-manager/api/;
|
||||||
|
}
|
||||||
|
|
||||||
# Serwowanie statycznych plików Django Admina
|
# Serwowanie statycznych plików Django Admina
|
||||||
location /mayo-manager/static/ {
|
location /mayo-manager/static/ {
|
||||||
alias /static_django/;
|
alias /static_django/;
|
||||||
|
|||||||
Reference in New Issue
Block a user