shitcode: Add shitcode config

This commit is contained in:
Kacper Donat 2021-10-24 21:31:01 +02:00
parent 69def07842
commit 9128610f43
4 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,19 @@
server {
listen 80;
root /var/www/shitcode.net/web/;
server_name shitcode.net;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
# pass the PHP scripts to FastCGI server listening on php-71:9000 x
location ~ \.php$ {
fastcgi_pass php-71:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}

View File

@ -17,6 +17,8 @@ services:
{% for version in php_versions %}
php-{{ version|replace('.', '') }}:
image: kadet/php:{{ version }}
environment:
- MYSQL_HOST={{ database_mysql_host }}:3306
volumes:
- "{{ www_root }}:/var/www"
{% endfor %}

View File

@ -0,0 +1,8 @@
---
http:
routers:
shitcode:
rule: Host(`shitcode.net`)
service: legacy@docker
tls:
certresolver: lets-encrypt

View File

@ -11,6 +11,7 @@ mysql_databases:
- name: gitea
- name: wipe
- name: keylighter
- name: shitcode
mysql_users:
- name: gitea