Skip to content
Snippets Groups Projects
Commit cfc973bc authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '942-membership-form-and-link-to-source-code-not-working' into 'development'

Resolve "Membership form and link to source code not working"

Closes #942

See merge request !1530
parents cdb1c813 aab608fd
No related branches found
No related tags found
2 merge requests!1531Development,!1530Resolve "Membership form and link to source code not working"
...@@ -24,6 +24,7 @@ RUN apk add --update \ ...@@ -24,6 +24,7 @@ RUN apk add --update \
php7-json \ php7-json \
php7-pcntl \ php7-pcntl \
php7-opcache \ php7-opcache \
php7-fileinfo \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
WORKDIR /html WORKDIR /html
...@@ -37,6 +38,7 @@ RUN sed -i 's/user = nobody/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \ ...@@ -37,6 +38,7 @@ RUN sed -i 's/user = nobody/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \
sed -i 's/user = www-data/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \ sed -i 's/user = www-data/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \
sed -i 's/group = www-data/group = nginx/g' /etc/php7/php-fpm.d/www.conf && \ sed -i 's/group = www-data/group = nginx/g' /etc/php7/php-fpm.d/www.conf && \
sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php7/php.ini && \ sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php7/php.ini && \
sed -i 's/expose_php = On/expose_php = Off/g' /etc/php7/php.ini && \
# Opcache configuration # Opcache configuration
sed -i 's/;opcache.enable=1/opcache.enable=1/g' /etc/php7/php.ini && \ sed -i 's/;opcache.enable=1/opcache.enable=1/g' /etc/php7/php.ini && \
sed -i 's/;opcache.memory_consumption=128/opcache.memory_consumption=128/g' /etc/php7/php.ini && \ sed -i 's/;opcache.memory_consumption=128/opcache.memory_consumption=128/g' /etc/php7/php.ini && \
......
...@@ -23,7 +23,7 @@ RUN apk add --update \ ...@@ -23,7 +23,7 @@ RUN apk add --update \
php7-gd \ php7-gd \
php7-json \ php7-json \
php7-pcntl \ php7-pcntl \
php7-opcache \ php7-fileinfo \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
WORKDIR /html WORKDIR /html
...@@ -37,14 +37,7 @@ RUN sed -i 's/user = nobody/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \ ...@@ -37,14 +37,7 @@ RUN sed -i 's/user = nobody/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \
sed -i 's/user = www-data/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \ sed -i 's/user = www-data/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \
sed -i 's/group = www-data/group = nginx/g' /etc/php7/php-fpm.d/www.conf && \ sed -i 's/group = www-data/group = nginx/g' /etc/php7/php-fpm.d/www.conf && \
sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php7/php.ini && \ sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php7/php.ini && \
# Opcache configuration sed -i 's/expose_php = On/expose_php = Off/g' /etc/php7/php.ini && \
sed -i 's/;opcache.enable=1/opcache.enable=1/g' /etc/php7/php.ini && \
sed -i 's/;opcache.memory_consumption=128/opcache.memory_consumption=128/g' /etc/php7/php.ini && \
sed -i 's/;opcache.interned_strings_buffer=8/opcache.interned_strings_buffer=8/g' /etc/php7/php.ini && \
sed -i 's/;opcache.max_accelerated_files=10000/opcache.max_accelerated_files=10000/g' /etc/php7/php.ini && \
sed -i 's/;opcache.max_wasted_percentage=5/opcache.max_wasted_percentage=5/g' /etc/php7/php.ini && \
sed -i 's/;opcache.validate_timestamps=1/opcache.validate_timestamps=1/g' /etc/php7/php.ini && \
sed -i 's/;opcache.revalidate_freq=2/opcache.revalidate_freq=300/g' /etc/php7/php.ini && \
echo "daemonize yes" >> /etc/redis.conf && \ echo "daemonize yes" >> /etc/redis.conf && \
ln -s /dev/null /var/log/nginx/access.log && \ ln -s /dev/null /var/log/nginx/access.log && \
ln -s /dev/stdout /var/log/nginx/error.log && \ ln -s /dev/stdout /var/log/nginx/error.log && \
......
...@@ -87,9 +87,9 @@ Route::group( ...@@ -87,9 +87,9 @@ Route::group(
Route::get('beitritt', function () { Route::get('beitritt', function () {
if (LaravelLocalization::getCurrentLocale() === "de") { if (LaravelLocalization::getCurrentLocale() === "de") {
return response()->file(storage_path('app/public/aufnahmeantrag-de.pdf')); return response()->download(storage_path('app/public/aufnahmeantrag-de.pdf'), "SUMA-EV_Beitrittsformular_" . (new \DateTime())->format("Y_m_d") . ".pdf", ["Content-Type" => "application/pdf"]);
} else { } else {
return response()->file(storage_path('app/public/aufnahmeantrag-en.pdf')); return response()->download(storage_path('app/public/aufnahmeantrag-en.pdf'), "SUMA-EV_Membershipform_" . (new \DateTime())->format("Y_m_d") . ".pdf", ["Content-Type" => "application/pdf"]);
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment