Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не скачиваются файлы записей камер #1

Open
remort opened this issue May 31, 2017 · 1 comment
Open

Не скачиваются файлы записей камер #1

remort opened this issue May 31, 2017 · 1 comment

Comments

@remort
Copy link

remort commented May 31, 2017

Под каждым файлом есть кнопка "загрузить". При ее нажатии chrome пытается скачать файл но пишет что файла нет. При попытке перейти по url файла или открыть его в новой вкладке rails пишет в логах:

Started GET "/srv/storage/corridor/09-20170531183527.ogg" for 10.80.1.15 at 2017-05-31 20:14:16 +0500

ActionController::RoutingError (No route matches [GET] "/srv/storage/corridor/09-20170531183527.ogg"):

Видимо routes приложения не допускает скачку фалов по url на файловой системе сервера.

@remort
Copy link
Author

remort commented Jun 1, 2017

Решил прописанием location в nginx:

    location /srv/storage
    {
        alias /srv/storage;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant