Fix /public and requests to non-matched domains.

This commit is contained in:
Greyscale 2022-05-06 04:52:55 +02:00
parent 2b64283ed9
commit 1198c7606f
No known key found for this signature in database
GPG key ID: EF017054C3E9CD59
2 changed files with 2 additions and 1 deletions

View file

@ -46,6 +46,7 @@ COPY NginxTemplate.twig /app/
RUN sed -i '1s;^;daemon off\;\n;' /etc/nginx/nginx.conf RUN sed -i '1s;^;daemon off\;\n;' /etc/nginx/nginx.conf
COPY bouncer /app COPY bouncer /app
COPY composer.* /app/ COPY composer.* /app/
COPY public /app/
RUN composer install && \ RUN composer install && \
chmod +x /app/bouncer && \ chmod +x /app/bouncer && \
mkdir -p /var/log/bouncer mkdir -p /var/log/bouncer

View file

@ -13,7 +13,7 @@ server {
location / { location / {
# First attempt to serve request as file, then # First attempt to serve request as file, then
# as directory, then fall back to displaying a 404. # as directory, then fall back to displaying a 404.
try_files $uri $uri/; #try_files $uri $uri/;
} }
# deny access to .htaccess files, if Apache's document root # deny access to .htaccess files, if Apache's document root