Skip to content
This repository was archived by the owner on Oct 12, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
if: github.ref == 'refs/heads/master'
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: gridsuite/gridactions-app
name: gridsuite/griddata-app
username: gridsuiteci
password: ${{ secrets.DOCKERHUB_TOKEN }}

Expand All @@ -30,4 +30,4 @@ jobs:
uses: gridsuite/broadcast-event@master
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
event-type: gridactions_app_updated
event-type: griddatas_app_updated
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ FROM httpd:2.4

RUN echo "Include conf/app-httpd.conf" >> /usr/local/apache2/conf/httpd.conf
COPY app-httpd.conf /usr/local/apache2/conf/
COPY build /usr/local/apache2/htdocs/gridactions
RUN sed -i -e 's;<base href="\./"/>;<base href="<!--#echo var="BASE" -->"/>;' /usr/local/apache2/htdocs/gridactions/index.html
COPY build /usr/local/apache2/htdocs/griddata
RUN sed -i -e 's;<base href="\./"/>;<base href="<!--#echo var="BASE" -->"/>;' /usr/local/apache2/htdocs/griddata/index.html
6 changes: 3 additions & 3 deletions app-httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule include_module modules/mod_include.so

DocumentRoot /usr/local/apache2/htdocs/gridactions/
DocumentRoot /usr/local/apache2/htdocs/griddata/
AddOutputFilterByType INCLUDES text/html
<Directory /usr/local/apache2/htdocs/gridactions/>
<Directory /usr/local/apache2/htdocs/griddata/>
Options +Includes
</Directory>

RewriteEngine On
RewriteMap remapbase "prg:/bin/sed -u -e 's;[^ ]* ;;' -e 's;[ ?].*;;' -e 's;[^/]*;..;g' -e 's;../..;;' -e 's/.//' -e 's;^$;.;'"

RewriteCond /usr/local/apache2/htdocs/gridactions%{REQUEST_URI} -f [OR]
RewriteCond /usr/local/apache2/htdocs/griddata%{REQUEST_URI} -f [OR]
RewriteCond %{REQUEST_URI} ^/api/.* [OR]
RewriteCond %{REQUEST_URI} ^/ws/.*
RewriteRule ^ - [S=2]
Expand Down
Loading