Skip to content

Commit

Permalink
Fix nginx Config for Video Directory
Browse files Browse the repository at this point in the history
Update the nginx config to enable the video directory to serve the slide
show NOAA images.
  • Loading branch information
jekhokie committed Mar 30, 2021
1 parent a9d1178 commit 7bf995d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ansible/roles/webserver/templates/nginx_default.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ server {
alias /srv/images/$1;
}

location ~ /videos/(.*) {
alias /srv/videos/$1;
}

location / {
try_files $uri $uri/ /index.php;
}
Expand Down
4 changes: 4 additions & 0 deletions ansible/roles/webserver/templates/nginx_tls_default.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ server {
alias /srv/images/$1;
}

location ~ /videos/(.*) {
alias /srv/videos/$1;
}

location / {
try_files $uri $uri/ /index.php;
}
Expand Down
2 changes: 1 addition & 1 deletion webpanel/App/Views/Passes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

{% if constant('Config\\Config::ENABLE_ANIMATION') == 'true' %}
<div id="noaa-animation" class="d-none d-sm-block flex-child">
<video controls="" autoplay="" loop="" src="{{ constant('Config\\Config::ANIMATION_VIDEO_FILE') }}" width="100%" height="100%" type="video/mp4"></video>
<video playsinline autoplay muted loop controls src="{{ constant('Config\\Config::ANIMATION_VIDEO_FILE') }}" width="100%" height="100%" type="video/mp4"></video>
</div>
{% endif %}
</div>
Expand Down
1 change: 1 addition & 0 deletions webpanel/public/assets/css/pass_list.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ table#passes td.no-passes {

.flex-child {
flex: 1;
max-height: 500px;
}

0 comments on commit 7bf995d

Please sign in to comment.