New Filestructure for Docker
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
# This Account must have have permissions SELECT, INSERT, UPDATE !
|
||||
|
||||
DB_USER=DB_GUESTUSER_USERNAME
|
||||
DB_PASSWORD=DB_GUESTUSER_PASSWORD
|
||||
DB_NAME=DATABASE_NAME # Same as .env.db-wkvs-user
|
||||
DB_HOST=mariadb # Same as .env.db-wkvs-user, An IP without Port, often 127.0.0.1 or localhost
|
||||
DB_PORT=3306 # default Port is 3306
|
||||
@@ -1,5 +1,3 @@
|
||||
DB_PREFIX=PREFIX
|
||||
|
||||
# Tabellennamen
|
||||
DB_TABLE_TEILNEHMENDE=teilnehmende
|
||||
DB_TABLE_TEILNEHMENDE_GRUPPEN=teilnehmende_gruppen
|
||||
@@ -1,7 +0,0 @@
|
||||
# This Account must have at least have permissions SELECT, INSERT, UPDATE, DELETE !
|
||||
|
||||
DB_USER=DB_USER_USERNAME
|
||||
DB_PASSWORD=DB_USER_PASSWORD
|
||||
DB_NAME=DATABASE_NAME
|
||||
DB_HOST=mariadb # mariadb for Docker Use, otherwsie An IP with Port 127.0.0.1 or localhost
|
||||
DB_PORT=3306 # default Port is 3306
|
||||
@@ -1,3 +0,0 @@
|
||||
MYSQL_ROOT_PASSWORD=YOUR_PASSWORD_FOR_ROOT
|
||||
MYSQL_DATABASE=YOUR_DATABASE_NAME
|
||||
MYSQL_HOST=localhost
|
||||
@@ -1 +0,0 @@
|
||||
PW_ENCRYPTION_KEY=YOUR_CUSTOM_PASSWORD_ENCRYPTION_KEY
|
||||
@@ -1,3 +0,0 @@
|
||||
REDDIS_PASSWORD=YOUR_REDDIS_PASSWORD
|
||||
REDDIS_HOST=YOUR_REDDIS_IP # An IP, often 127.0.0.1 or localhost
|
||||
REDDIS_PORT=YOUR_REDDIS_PORT # Default 6379
|
||||
@@ -1,12 +0,0 @@
|
||||
FROM php:8.3-apache
|
||||
|
||||
# Enable the rewrite module
|
||||
RUN a2enmod rewrite
|
||||
|
||||
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
|
||||
|
||||
# Set Apache DocumentRoot to /var/wkvs/www
|
||||
ENV APACHE_DOCUMENT_ROOT /var/wkvs/www
|
||||
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
||||
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf \
|
||||
&& sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
|
||||
@@ -1 +0,0 @@
|
||||
include_path=".:/var/www/html:/usr/local/lib/php"
|
||||
@@ -1,33 +0,0 @@
|
||||
events {}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
proxy_pass http://apache:80;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /ws/ {
|
||||
proxy_pass http://node:8082;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
|
||||
# Prevent WebSocket timeout
|
||||
proxy_read_timeout 36000s; # 1 hour
|
||||
proxy_send_timeout 36000s; # 1 hour
|
||||
proxy_connect_timeout 75s; # optional
|
||||
}
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user