Skip to content

Commit

Permalink
set to .local
Browse files Browse the repository at this point in the history
  • Loading branch information
paproc committed Nov 19, 2023
1 parent e27909b commit 5e4ab0e
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 51 deletions.
54 changes: 27 additions & 27 deletions .devcontainer/apache-site.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,72 +13,72 @@ Listen 8088
</Directory>

<VirtualHost *:80>
ServerName online.fyziklani.cz
ServerAlias online.fyziklani.org
ServerName online.fyziklani.cz.local
ServerAlias online.fyziklani.org.local
DocumentRoot /workspace/www/fol
SetEnv NETTE_DEVEL 1
</VirtualHost>

<VirtualHost *:80>
ServerName fyziklani.cz
ServerAlias fyziklani.org
ServerName fyziklani.cz.local
ServerAlias fyziklani.org.local
DocumentRoot /workspace/www/fof
SetEnv NETTE_DEVEL 1
</VirtualHost>

<VirtualHost *:80>
ServerName dsef.cz
ServerAlias dsef.org
ServerName dsef.cz.local
ServerAlias dsef.org.local
DocumentRoot /workspace/www/dsef
SetEnv NETTE_DEVEL 1
</VirtualHost>

<VirtualHost *:80>
ServerName fykos.cz
ServerAlias fykos.org
ServerName fykos.cz.local
ServerAlias fykos.org.local
DocumentRoot /workspace/www/fykos
SetEnv NETTE_DEVEL 1
</VirtualHost>

<VirtualHost *:80>
ServerName vyfuk.org
ServerName vyfuk.org.local
DocumentRoot /workspace/www/vyfuk
SetEnv NETTE_DEVEL 1
</VirtualHost>

<VirtualHost *:8080>
ProxyPass "/" "http://vyfuk.org/"
ProxyPassReverse "/" "http://vyfuk.org/"
ProxyPass "/" "http://vyfuk.org.local/"
ProxyPassReverse "/" "http://vyfuk.org.local/"
</VirtualHost>
<VirtualHost *:8081>
ProxyPass "/" "http://online.fyziklani.cz/"
ProxyPassReverse "/" "http://online.fyziklani.cz/"
ProxyPass "/" "http://online.fyziklani.cz.local/"
ProxyPassReverse "/" "http://online.fyziklani.cz.local/"
</VirtualHost>
<VirtualHost *:8082>
ProxyPass "/" "http://online.fyziklani.org/"
ProxyPassReverse "/" "http://online.fyziklani.org/"
ProxyPass "/" "http://online.fyziklani.org.local/"
ProxyPassReverse "/" "http://online.fyziklani.org.local/"
</VirtualHost>
<VirtualHost *:8083>
ProxyPass "/" "http://fyziklani.cz/"
ProxyPassReverse "/" "http://fyziklani.cz/"
ProxyPass "/" "http://fyziklani.cz.local/"
ProxyPassReverse "/" "http://fyziklani.cz.local/"
</VirtualHost>
<VirtualHost *:8084>
ProxyPass "/" "http://fyziklani.org/"
ProxyPassReverse "/" "http://fyziklani.org/"
ProxyPass "/" "http://fyziklani.org.local/"
ProxyPassReverse "/" "http://fyziklani.org.local/"
</VirtualHost>
<VirtualHost *:8085>
ProxyPass "/" "http://dsef.cz/"
ProxyPassReverse "/" "http://dsef.cz/"
ProxyPass "/" "http://dsef.cz.local/"
ProxyPassReverse "/" "http://dsef.cz.local/"
</VirtualHost>
<VirtualHost *:8086>
ProxyPass "/" "http://dsef.org/"
ProxyPassReverse "/" "http://dsef.org/"
ProxyPass "/" "http://dsef.org.local/"
ProxyPassReverse "/" "http://dsef.org.local/"
</VirtualHost>
<VirtualHost *:8087>
ProxyPass "/" "http://fykos.cz/"
ProxyPassReverse "/" "http://fykos.cz/"
ProxyPass "/" "http://fykos.cz.local/"
ProxyPassReverse "/" "http://fykos.cz.local/"
</VirtualHost>
<VirtualHost *:8088>
ProxyPass "/" "http://fykos.org/"
ProxyPassReverse "/" "http://fykos.org/"
ProxyPass "/" "http://fykos.org.local/"
ProxyPassReverse "/" "http://fykos.org.local/"
</VirtualHost>
18 changes: 18 additions & 0 deletions .devcontainer/config.local.neon.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
database:
default:
dsn: 'mysql:host=localhost;dbname=fol-web'
user: %database.user%
password: %database.password%
problems:
dsn: 'mysql:host=localhost;dbname=problems'
user: %database.user%
password: %database.password%
parameters:
fksdbDownloader:
login: a
password: a
url: https:\\example.com
database:
user: a
password: a
gameApiURL: https:\\example.com
18 changes: 9 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,39 +25,39 @@
],
"portsAttributes": {
"8080": {
"label": "http://vyfuk.org",
"label": "http://vyfuk.org.local",
"requireLocalPort": true
},
"8081": {
"label": "http://online.fyziklani.cz",
"label": "http://online.fyziklani.cz.local",
"requireLocalPort": true
},
"8082": {
"label": "http://online.fyziklani.org",
"label": "http://online.fyziklani.org.local",
"requireLocalPort": true
},
"8083": {
"label": "http://fyziklani.cz",
"label": "http://fyziklani.cz.local",
"requireLocalPort": true
},
"8084": {
"label": "http://fyziklani.org",
"label": "http://fyziklani.org.local",
"requireLocalPort": true
},
"8085": {
"label": "http://dsef.cz",
"label": "http://dsef.cz.local",
"requireLocalPort": true
},
"8086": {
"label": "http://dsef.org",
"label": "http://dsef.org.local",
"requireLocalPort": true
},
"8087": {
"label": "http://fykos.cz",
"label": "http://fykos.cz.local",
"requireLocalPort": true
},
"8088": {
"label": "http://fykos.org",
"label": "http://fykos.org.local",
"requireLocalPort": true
}
},
Expand Down
31 changes: 21 additions & 10 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,27 @@ services:
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
extra_hosts:
- "vyfuk.org:127.0.1.1"
- "online.fyziklani.cz:127.0.1.1"
- "online.fyziklani.org:127.0.1.1"
- "fyziklani.cz:127.0.1.1"
- "fyziklani.org:127.0.1.1"
- "dsef.cz:127.0.1.1"
- "dsef.org:127.0.1.1"
- "fykos.cz:127.0.1.1"
- "fykos.org:127.0.1.1"

- "vyfuk.org.local:127.0.1.1"
- "online.fyziklani.cz.local:127.0.1.1"
- "online.fyziklani.org.local:127.0.1.1"
- "fyziklani.cz.local:127.0.1.1"
- "fyziklani.org.local:127.0.1.1"
- "dsef.cz.local:127.0.1.1"
- "dsef.org.local:127.0.1.1"
- "fykos.cz.local:127.0.1.1"
- "fykos.org.local:127.0.1.1"

ports:
- 80:80
- 8080:8080
- 8081:8081
- 8082:8082
- 8083:8083
- 8084:8084
- 8085:8085
- 8086:8086
- 8087:8087
- 8088:8088

#db:
# image: mysql
Expand Down
20 changes: 15 additions & 5 deletions .devcontainer/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@ composer install
npm install
#npm run build

cp app/config/config.local.neon.example app/config/config.fof.local.neon
cp app/config/config.local.neon.example app/config/config.fol.local.neon
cp app/config/config.local.neon.example app/config/config.dsef.local.neon
cp app/config/config.local.neon.example app/config/config.vyfuk.local.neon
cp app/config/config.local.neon.example app/config/config.fykos.local.neon
if [ ! -f app/config/config.fof.local.neon ]; then
cp .devcontainer/config.local.neon.example app/config/config.fof.local.neon
fi
if [ ! -f app/config/config.fol.local.neon ]; then
cp .devcontainer/config.local.neon.example app/config/config.fol.local.neon
fi
if [ ! -f app/config/config.dsef.local.neon ]; then
cp .devcontainer/config.local.neon.example app/config/config.dsef.local.neon
fi
if [ ! -f app/config/config.vyfuk.local.neon ]; then
cp .devcontainer/config.local.neon.example app/config/config.vyfuk.local.neon
fi
if [ ! -f app/config/config.fykos.local.neon ]; then
cp .devcontainer/config.local.neon.example app/config/config.fykos.local.neon
fi

app/i18n/compile.sh
rm -rf temp/cache

0 comments on commit 5e4ab0e

Please sign in to comment.