Skip to content

jnjcomu/dets-online

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DET'S Online Apply System

Requirement

  • src/settings.php

settings.php - example

  <?php
  return [
      'settings' => [
          'displayErrorDetails' => true, // set to false in production
          'addContentLengthHeader' => false, // Allow the web server to send the content-length header

          // Renderer settings
          'renderer' => [
              'template_path' => __DIR__ . '/../templates/',
          ],

          'medoo' => [
              'database_type' => 'mysql',
              'database_name' => 'your_database',
              'server' => 'localhost',
              'username' => 'your_database',
              'password' => 'your_password',
              'charset' => 'utf8',
          ],

          // Monolog settings
          'logger' => [
              'name' => 'slim-app',
              'path' => __DIR__ . '/../logs/app.log',
              'level' => \Monolog\Logger::DEBUG,
          ],

          // Dimigo API
          'dimiapi' => [
              // If you want publish this application, you can use https://api.dimigo.hs.kr that be used product service.
              'host' => 'http://api.dimigo.org', 
              'api_id' => 'dimigoid_password',
              'api_pw' => 'dimigoapi_password',
          ],
      ],
  ];

Dimigo API Host

In the settings.php example above, I wrote to use https://api.dimigo.org in dimiapi host.

But you can use other address. So, Here are some other address :

Testing / Development

  • http://api.dimigo.org - Used when testing and development

Publishing

  • http://api.dimigo.hs.kr - Used CloudFlare. But it doesn't use ssl.
  • https://api.dimigo.hs.kr - Used CloudFlare and ssl. I recommended to use.
  • http://dapi.dimigo.hs.kr- Do not use anything. Even CloudFlare.