shitcode: Add shitcode config
This commit is contained in:
parent
69def07842
commit
9128610f43
19
services/legacy/sites/shitcode.conf
Normal file
19
services/legacy/sites/shitcode.conf
Normal 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;
|
||||
}
|
||||
}
|
@ -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 %}
|
||||
|
8
services/traefik/config/dynamic/shitcode.yaml
Normal file
8
services/traefik/config/dynamic/shitcode.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
http:
|
||||
routers:
|
||||
shitcode:
|
||||
rule: Host(`shitcode.net`)
|
||||
service: legacy@docker
|
||||
tls:
|
||||
certresolver: lets-encrypt
|
@ -11,6 +11,7 @@ mysql_databases:
|
||||
- name: gitea
|
||||
- name: wipe
|
||||
- name: keylighter
|
||||
- name: shitcode
|
||||
|
||||
mysql_users:
|
||||
- name: gitea
|
||||
|
Loading…
Reference in New Issue
Block a user