diff --git a/000-default.conf b/000-default.conf new file mode 100644 index 0000000..44d00f7 --- /dev/null +++ b/000-default.conf @@ -0,0 +1,10 @@ + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/ + + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bdb76a8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM php:7-apache +COPY 000-default.conf /etc/apache2/sites-available/000-default.conf +RUN a2enmod rewrite +COPY app /var/www/ +RUN chown -R www-data:www-data /var/www +EXPOSE 80 +CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] \ No newline at end of file diff --git a/LICENSE b/LICENSE index 2071b23..83200f4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,9 +1,9 @@ MIT License -Copyright (c) +Copyright (c) 2021 angestöpselt e.V. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index ca40b95..9962977 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,23 @@ # refund-form +## Description + +This ist our refund-form for expenses of our members. A small dockerized app, written in php. + +## Usage +Please use this as a starting point: +- clone the repository and run ``docker-compose -f docker-compose.example.yml up -d`` and the app spawns public on port 8033 + +Please run this example only in your own Network. There are more useful setups, for example behind a reverse proxy, like traefik + +## License + +The MIT License (MIT) + +Copyright © 2021 angestöpselt e.V. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/assets/css/main.css b/app/assets/css/main.css similarity index 100% rename from assets/css/main.css rename to app/assets/css/main.css diff --git a/assets/img/210210_angestöpselt_logo_final_web.jpg b/app/assets/img/210210_angestöpselt_logo_final_web.jpg similarity index 100% rename from assets/img/210210_angestöpselt_logo_final_web.jpg rename to app/assets/img/210210_angestöpselt_logo_final_web.jpg diff --git a/assets/js/main.js b/app/assets/js/main.js similarity index 100% rename from assets/js/main.js rename to app/assets/js/main.js diff --git a/assets/vendor/bootstrap/css/bootstrap.min.css b/app/assets/vendor/bootstrap/css/bootstrap.min.css similarity index 100% rename from assets/vendor/bootstrap/css/bootstrap.min.css rename to app/assets/vendor/bootstrap/css/bootstrap.min.css diff --git a/assets/vendor/bootstrap/css/bootstrap.min.css.map b/app/assets/vendor/bootstrap/css/bootstrap.min.css.map similarity index 100% rename from assets/vendor/bootstrap/css/bootstrap.min.css.map rename to app/assets/vendor/bootstrap/css/bootstrap.min.css.map diff --git a/assets/vendor/bootstrap/js/bootstrap.bundle.min.js b/app/assets/vendor/bootstrap/js/bootstrap.bundle.min.js similarity index 100% rename from assets/vendor/bootstrap/js/bootstrap.bundle.min.js rename to app/assets/vendor/bootstrap/js/bootstrap.bundle.min.js diff --git a/assets/vendor/bootstrap/js/bootstrap.bundle.min.js.map b/app/assets/vendor/bootstrap/js/bootstrap.bundle.min.js.map similarity index 100% rename from assets/vendor/bootstrap/js/bootstrap.bundle.min.js.map rename to app/assets/vendor/bootstrap/js/bootstrap.bundle.min.js.map diff --git a/assets/vendor/jquery/jquery-3.6.0.min.js b/app/assets/vendor/jquery/jquery-3.6.0.min.js similarity index 100% rename from assets/vendor/jquery/jquery-3.6.0.min.js rename to app/assets/vendor/jquery/jquery-3.6.0.min.js diff --git a/assets/vendor/jquery/jquery-3.6.0.min.map b/app/assets/vendor/jquery/jquery-3.6.0.min.map similarity index 100% rename from assets/vendor/jquery/jquery-3.6.0.min.map rename to app/assets/vendor/jquery/jquery-3.6.0.min.map diff --git a/index.html b/app/index.html similarity index 100% rename from index.html rename to app/index.html diff --git a/print.html b/app/print.html similarity index 100% rename from print.html rename to app/print.html diff --git a/docker-compose.example.yml b/docker-compose.example.yml new file mode 100644 index 0000000..868b19e --- /dev/null +++ b/docker-compose.example.yml @@ -0,0 +1,8 @@ +--- +version: "3" + +services: + refund-form: + build: . + ports: + - 8033:80 \ No newline at end of file