Skip to content

Commit f0912b8

Browse files
committed
correção da pasta de logs
1 parent 9a370c7 commit f0912b8

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ RUN composer install --no-interaction --optimize-autoloader
1717
COPY docker-entrypoint.sh /usr/local/bin/
1818
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
1919

20+
RUN mkdir -p /app/logs
21+
2022
RUN touch /app/logs/cron.log
2123
RUN echo '0 * * * * root php "/app/cron/fetchFeeds.php" >> /app/logs/cron.log 2>&1' >> /etc/crontab
2224

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Apos instalar o docker, vamos criar um *compose*:
1717
services:
1818
lerama:
1919
container_name: lerama
20-
image: ghcr.io/manualdousuario/lerama/lerama:latest
20+
image: ghcr.io/manualdousuario/lerama:latest
2121
ports:
2222
- "80:80"
2323
environment:

default.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ server {
2222
location /admin {
2323
try_files $uri $uri/ /admin.php?$query_string;
2424
}
25+
26+
location ^~ /logs/ {
27+
deny all;
28+
return 403;
29+
}
30+
31+
location ^~ /cron/ {
32+
deny all;
33+
return 403;
34+
}
2535

2636
location ~ \.php$ {
2737
include snippets/fastcgi-php.conf;

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
lerama:
33
container_name: lerama
4-
image: ghcr.io/manualdousuario/lerama/lerama:latest
4+
image: ghcr.io/manualdousuario/lerama:latest
55
ports:
66
- "80:80"
77
environment:

0 commit comments

Comments
 (0)