Compare commits

..

No commits in common. "4b6c0961ffe689835eca80c423f3070c787ccc44" and "952512d6b47de331fefff5a179c36c16395f2217" have entirely different histories.

6 changed files with 3 additions and 13 deletions

2
.gitignore vendored
View File

@ -1,4 +1,2 @@
configs/ configs/
configs/* configs/*
logs/
logs/*

View File

@ -67,7 +67,7 @@ RUN bash -c 'apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoff
# Delete default stuff # Delete default stuff
#nginx #nginx
RUN rm -rv /var/www/html/index.nginx-debian.html \ RUN rm -rv /var/www/html/index.nginx-debian.html \
/etc/php/ \ /etc/php/
/etc/nginx/ /etc/nginx/
#Autoconfig defaults #Autoconfig defaults

View File

@ -8,10 +8,6 @@ ln -sv /etc/nginx/sites-available/nextcloud_nginx.conf /etc/nginx/sites-enabled/
cp -rv default_configs/etc/php /etc/ cp -rv default_configs/etc/php /etc/
touch init/init touch init/init
#Create log dirs
mkdir -pv /root/logs/nginx
mkdir -pv /root/logs/php-fpm
echo defaults configs are deployed, please check and change any required configs and restart container echo defaults configs are deployed, please check and change any required configs and restart container
pkill bash pkill bash

View File

@ -9,10 +9,6 @@ server {
listen 80; listen 80;
server_name _; server_name _;
#Logs
access_log /root/logs/nginx/access.log;
error_log /root/logs/nginx/error.log;
# Path to the root of your installation # Path to the root of your installation
root /var/www/nextcloud; root /var/www/nextcloud;

View File

@ -23,7 +23,7 @@ pid = /run/php/php8.1-fpm.pid
; into a local file. ; into a local file.
; Note: the default prefix is /var ; Note: the default prefix is /var
; Default Value: log/php-fpm.log ; Default Value: log/php-fpm.log
error_log = /root/logs/php-fpm/php8.1-fpm.log error_log = /var/log/php8.1-fpm.log
; syslog_facility is used to specify what type of program is logging the ; syslog_facility is used to specify what type of program is logging the
; message. This lets syslogd specify that messages from different facilities ; message. This lets syslogd specify that messages from different facilities

View File

@ -6,7 +6,7 @@ services:
image: git.shihaam.me/dockerfiles/nextcloud image: git.shihaam.me/dockerfiles/nextcloud
volumes: volumes:
- ./configs/init:/root/init - ./configs/init:/root/init
- ./logs:/root/logs # - ./logs:/logs
- ./configs/etc/nginx:/etc/nginx - ./configs/etc/nginx:/etc/nginx
- ./configs/etc/php:/etc/php - ./configs/etc/php:/etc/php
ports: ports: