Skip to content

Commit

Permalink
Small config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritzs committed Mar 24, 2025
1 parent 947fadd commit e56121a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
20 changes: 20 additions & 0 deletions backend/users/migrations/0004_alter_athletefile_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.0.8 on 2025-03-21 12:33

from django.db import migrations, models
import users.models
import users.validators


class Migration(migrations.Migration):

dependencies = [
('users', '0003_user_specialism'),
]

operations = [
migrations.AlterField(
model_name='athletefile',
name='file',
field=models.FileField(upload_to=users.models.athlete_directory_path, validators=[users.validators.FileValidator(allowed_extensions='', allowed_mimetypes='', max_size=5242880)]),
),
]
2 changes: 1 addition & 1 deletion frontend/src/services/AxiosInstance.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from "axios";

const AxiosInstance = axios.create({
baseURL: "/",
baseURL: "http://localhost:8000",
timeout: 5000,
headers: {
"Content-Type": "application/json",
Expand Down
22 changes: 12 additions & 10 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,31 @@ server {

location / {
proxy_pass http://0.0.0.0:23/;
proxy_set_header Host ;
proxy_set_header X-Real-IP ;
proxy_set_header X-Forwarded-For ;
proxy_set_header Host $http_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;
}
}

server {
listen 217;
location / {
proxy_pass http://0.0.0.0:21/;
proxy_set_header Host ;
proxy_set_header X-Real-IP ;
proxy_set_header X-Forwarded-For ;
proxy_set_header Host $http_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;
}
}


server {
listen 227;
location / {
proxy_pass http://0.0.0.0:22/;
proxy_set_header Host ;
proxy_set_header X-Real-IP ;
proxy_set_header X-Forwarded-For ;
proxy_set_header Host $http_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;
}
}

0 comments on commit e56121a

Please sign in to comment.