nginx emerg unknown directive upstream деплой Django

Приветсвую ошибка nginx emerg unknown directive upstream не пойму что делать? подскажите кто сталкивался

upstream innerdjango {
    server django-backend:8000;
    # connection to the inner django-backend service
    # here `django-backend` is the service's name in
    # docker-compose.yml, it is resolved by docker to inner IP address.
    # The `innerdjango` is just te name of upstream, used by nginx below.
}
server {
    # the connection to the outside world
    # will be changed to incorporate cert's bot and ssl
    # just to test it localy for now
    listen 80; # port exposed to outside world. Needs to be opened in docker-compose.yml
    server_name 2531032-yo82699.twc1.net;
    # server_name example.com;
    location / {
      # where to redirect `/` requests
      proxy_pass http://innerdjango;
    }

Ответы (1 шт):

Автор решения: Дмитрий

перезаписал файл через vim и все ОК

→ Ссылка