Skip to content

Commit

Permalink
Only load theme.park CSS assets
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienPatte committed Nov 8, 2023
1 parent 90af2cf commit 9d3cb16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions roles/mediaserver/tasks/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
- /var/www/html
- /var/www/html/datadog
- /var/www/html/homer
- /var/www/html/theme.park

- name: Install homer assets
become: true
Expand All @@ -41,7 +40,9 @@
become: true
ansible.builtin.unarchive:
src: https://github.com/themepark-dev/theme.park/archive/refs/tags/{{ themepark.version }}.zip
dest: /var/www/html/theme.park
dest: /var/www/html
include:
- "*.css"
remote_src: "yes"
owner: www-data
group: www-data
Expand Down
2 changes: 1 addition & 1 deletion roles/mediaserver/templates/mediaserver.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ server {
}

location /css {
alias /var/www/html/theme.park/theme.park-{{ themepark.version }};
alias /var/www/html/theme.park-{{ themepark.version }}/css;
}

location /datadog {
Expand Down

0 comments on commit 9d3cb16

Please sign in to comment.