1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

прор222в2в2вав

This commit is contained in:
MoonTestUse1
2025-01-04 04:34:08 +06:00
parent 08ccd8700d
commit 7f0a8c5dd7
2 changed files with 1 additions and 14 deletions

View File

@@ -5,19 +5,6 @@ server {
root /usr/share/nginx/html;
index index.html;
# Auth proxy
location /auth/ {
proxy_pass http://backend:8000/auth/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
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;
proxy_cache_bypass $http_upgrade;
}
# API proxy
location /api/ {
proxy_pass http://backend:8000/api/;

View File

@@ -64,7 +64,7 @@ export default {
formData.append('username', this.username)
formData.append('password', this.password)
const response = await axios.post('/auth/admin/login', formData)
const response = await axios.post('/api/auth/admin/login', formData)
localStorage.setItem('admin_token', response.data.access_token)
this.$router.push('/admin/dashboard')