mirror of
https://github.com/Ahwxorg/Binternet.git
synced 2026-03-11 08:54:37 +00:00
fix: socket permissions
Signed-off-by: rare-magma <rare-magma@posteo.eu>
This commit is contained in:
parent
4d069b3a1b
commit
ce3c0577a8
3 changed files with 4 additions and 3 deletions
|
|
@ -4,13 +4,13 @@ RUN apk add php83 php83-fpm php83-dom php83-curl php83-json php83-openssl nginx
|
|||
RUN sed -i '/user nginx;/d' /etc/nginx/nginx.conf \
|
||||
&& sed -i 's/^user = nobody/; user = nobody/' /etc/php83/php-fpm.d/www.conf \
|
||||
&& sed -i 's/^group = nobody/; group = nobody/' /etc/php83/php-fpm.d/www.conf \
|
||||
&& sed -i 's/listen = 127.0.0.1:9000/listen = \/run\/php-fpm83.sock/' /etc/php83/php-fpm.d/www.conf \
|
||||
&& sed -i 's/listen = 127.0.0.1:9000/listen = \/run\/php\/php-fpm83.sock/' /etc/php83/php-fpm.d/www.conf \
|
||||
&& sed -i 's/;listen.owner = nobody/listen.owner = nginx/' /etc/php83/php-fpm.d/www.conf \
|
||||
&& sed -i 's/;listen.group = nobody/listen.group = nginx/' /etc/php83/php-fpm.d/www.conf \
|
||||
&& sed -i 's/;listen.mode/listen.mode/' /etc/php83/php-fpm.d/www.conf \
|
||||
&& sed -i 's/;listen.allowed_clients/listen.allowed_clients/' /etc/php83/php-fpm.d/www.conf
|
||||
|
||||
RUN mkdir -p /var/www/binternet
|
||||
RUN mkdir -p /var/www/binternet /run/php
|
||||
COPY . /var/www/binternet
|
||||
COPY nginx.conf /etc/nginx/http.d/binternet.conf
|
||||
RUN rm /var/www/binternet/nginx.conf /etc/nginx/http.d/default.conf \
|
||||
|
|
|
|||
|
|
@ -11,3 +11,4 @@ services:
|
|||
- '8080:8080'
|
||||
tmpfs:
|
||||
- /var/log:noexec,nosuid,nodev
|
||||
- /var/lib:noexec,nosuid,nodev
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ server {
|
|||
index index.php;
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/run/php-fpm83.sock;
|
||||
fastcgi_pass unix:/run/php/php-fpm83.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
|
|
|||
Loading…
Reference in a new issue