This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name local.example.com; | |
ssl_session_cache builtin:1000 shared:SSL:10m; | |
ssl_session_timeout 10m; | |
ssl_protocols TLSv1.1 TLSv1.2; | |
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128:AES256:AES:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
# This is docker compose version of MGT Commerce base on this: | |
# https://www.mgt-commerce.com/documentation/mgt-development-environment-run-container | |
services: | |
mgt-development-environment-7.2: | |
volumes: | |
- ./public_html:/home/cloudpanel/htdocs | |
- /var/lib/mysql | |
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
$config = [ | |
'DB_HOSTNAME' => 'localhost', | |
'DB_USERNAME' => 'root', | |
'DB_PASSWORD' => 'rootpassword', | |
'DB_DATABASE' => 'dummy_database' | |
]; | |
$dsn = "mysql:host={$config['DB_HOSTNAME']};dbname={$config['DB_DATABASE']};charset=utf8mb4"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/mongod.conf | |
processManagement: | |
fork: true | |
net: | |
bindIp: 127.0.0.1 | |
port: 27017 | |
storage: | |
dbPath: /home/fiko/applications/mongodb/db | |
systemLog: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /lib/systemd/system/mongod.service | |
[Unit] | |
Description=An object/document-oriented database | |
After=network.target | |
[Service] | |
User=fiko | |
ExecStart=/home/fiko/applications/mongodb/bin/mongod --auth --quiet --config=/etc/mongod.conf |
NewerOlder