웹사이트 검색

Apache와 함께 TaskBoard를 설치하고 Debian 11에서 SSL을 암호화할 수 있습니다.


이 페이지에서

  1. 전제 조건
  2. 시작하기\n
  3. Apache, PHP 및 Sqlite 설치
  4. 작업판 다운로드
  5. Taskboard용 Apache 구성
  6. 태스크보드 액세스
  7. Lets Encrypt SSL을 사용한 보안 태스크보드\n
  8. 결론

TaskBoard는 완료해야 하는 작업을 추적하는 데 사용되는 무료 오픈 소스 Kanban 애플리케이션입니다. 모든 작업을 추적하는 데 도움이 되는 PHP 기반의 자체 호스팅 응용 프로그램입니다. 모든 작업을 관리하기 위한 간단하고 사용자 친화적인 웹 인터페이스를 제공합니다. 팀이나 조직에서 작업과 완료 경로를 나타내는 데 사용됩니다.

특징

  • 무료 및 오픈 소스\n
  • 무제한 보드\n
  • 간단하고 쉬운 설치\n
  • 손쉬운 사용자 정의
  • RESTful API
  • 기본 사용자 관리

이 튜토리얼에서는 Debian 11에 Taskboard를 설치하는 방법을 보여줍니다.

전제 조건

  • Debian 11을 실행하는 서버.\n
  • 서버 IP를 가리키는 유효한 도메인 이름입니다.\n
  • 루트 암호는 서버에서 구성됩니다.\n

시작하기

시작하기 전에 시스템 패키지를 업데이트된 버전으로 업데이트하는 것이 좋습니다. 다음 명령을 실행하여 모두 업데이트할 수 있습니다.

apt-get update -y

모든 패키지가 업데이트되면 다음 단계로 진행할 수 있습니다.

Apache, PHP 및 Sqlite 설치

먼저 Apache 웹 서버, PHP, SQLite 및 기타 필수 종속 항목을 서버에 설치해야 합니다. 다음 명령을 실행하여 모두 설치할 수 있습니다.

apt-get install apache2 sqlite3 php libapache2-mod-php php-cli php-common php-json php-readline php-sqlite3 libaio1 libapr1 libhtml-template-perl libaprutil1-dbd-sqlite3 libaprutil1-ldap libaprutil1 libdbi-perl libterm-readkey-perl curl libwrap0 unzip wget -y

모든 패키지가 설치되면 Apache 서비스를 시작하고 시스템 재부팅 시 시작되도록 활성화합니다.

systemctl start apache2
systemctl enable apache2

완료되면 다음 단계로 진행할 수 있습니다.

태스크보드 다운로드

먼저 다음 명령을 사용하여 최신 버전의 Taskboard를 다운로드합니다.

curl -s https://api.github.com/repos/kiswa/TaskBoard/releases/latest |grep browser_download_url | cut -d '"' -f 4 | wget -i -

다운로드가 완료되면 다음 명령을 사용하여 다운로드한 파일을 Apache 웹 루트 디렉터리에 추출합니다.

unzip TaskBoard_v*.zip -d /var/www/html/taskboard

다음으로 Taskboard 디렉터리에 대한 적절한 소유권과 권한을 설정합니다.

chown -R www-data:www-data /var/www/html/taskboard
chmod -R 775 /var/www/html/taskboard

완료되면 다음 단계로 진행할 수 있습니다.

Taskboard용 Apache 구성

다음으로 Taskboard용 Apache 가상 호스트 구성 파일을 만들어야 합니다. 다음 명령을 실행하여 만들 수 있습니다.

nano /etc/apache2/sites-available/taskboard.conf

다음 줄을 추가합니다.

<VirtualHost *:80>
    ServerAdmin 
    DocumentRoot "/var/www/html/taskboard"
    ServerName taskboard.example.com
    <Directory "/var/www/html/taskboard">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    ErrorLog "/var/log/apache2/taskboard-error_log"
    CustomLog "/var/log/apache2/taskboard-access_log" combined
</VirtualHost>

완료되면 파일을 저장하고 닫은 다음 다음 명령을 사용하여 Apache 가상 호스트를 활성화합니다.

a2ensite taskboard.conf

다음으로 Apache 재작성 모듈을 활성화하고 다음 명령을 사용하여 Apache 웹 서비스를 다시 시작합니다.

a2enmod rewrite
systemctl restart apache2

이제 다음 명령을 사용하여 Apache 서비스의 상태를 확인할 수 있습니다.

systemctl status apache2

다음과 같은 결과가 표시됩니다.

? apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-11-06 14:46:54 UTC; 5s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 23704 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 23709 (apache2)
      Tasks: 6 (limit: 4679)
     Memory: 15.3M
        CPU: 110ms
     CGroup: /system.slice/apache2.service
             ??23709 /usr/sbin/apache2 -k start
             ??23710 /usr/sbin/apache2 -k start
             ??23711 /usr/sbin/apache2 -k start
             ??23712 /usr/sbin/apache2 -k start
             ??23713 /usr/sbin/apache2 -k start
             ??23714 /usr/sbin/apache2 -k start

Nov 06 14:46:54 debian11 systemd[1]: Starting The Apache HTTP Server...

완료되면 다음 단계로 진행할 수 있습니다.

태스크보드에 액세스

이 시점에서 Taskboard가 설치되고 구성됩니다. 이제 웹 브라우저를 열고 URL http://taskboard.example.com을 사용하여 Taskboard에 액세스합니다. Taskboard 로그인 페이지로 리디렉션됩니다.

기본 관리자 사용자 이름과 비밀번호 admin/admin을 제공하고 로그인 버튼을 클릭합니다. 다음 페이지에 Taskboard 대시보드가 표시되어야 합니다.

이제 설정 버튼을 클릭하여 태스크보드 기본 관리자 암호를 변경하십시오. 다음 페이지가 표시됩니다.

새 관리자 비밀번호를 입력하고 비밀번호 변경 버튼을 클릭하여 변경 사항을 적용하십시오.

Lets Encrypt SSL을 사용한 보안 태스크보드

Lets Encrypt SSL로 Taskboard를 보호하려면 Certbot 클라이언트 패키지를 설치하고 Taskboard용 Lets Encrypt SSL을 관리해야 합니다.

다음 명령을 실행하여 설치할 수 있습니다.

apt-get install python3-certbot-apache -y

Certbot 패키지가 설치되면 다음 명령을 실행하여 Taskboard 웹 사이트용 Lets Encrypt SSL을 다운로드하고 설치합니다.

certbot --apache -d taskboard.example.com

아래와 같이 이메일을 제공하고 서비스 약관에 동의하라는 메시지가 표시됩니다.

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for taskboard.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/taskboard-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/taskboard-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/taskboard-le-ssl.conf

다음으로 아래와 같이 HTTP 트래픽을 HTTPS로 리디렉션할지 여부를 선택합니다.

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2

2를 입력하고 Enter 키를 눌러 웹사이트에 Lets Encrypt SSL을 설치합니다.

Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/taskboard.conf to ssl vhost in /etc/apache2/sites-available/taskboard-le-ssl.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://taskboard.example.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=taskboard.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/taskboard.example.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/taskboard.example.com/privkey.pem
   Your cert will expire on 2022-02-7. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

이제 URL https://taskboard.example.com을 사용하여 안전하게 웹사이트에 액세스할 수 있습니다.

결론

축하합니다! Apache와 Lets Encrypt SSL을 사용하여 Taskboard를 성공적으로 설치했습니다. 이제 보드를 만들고, 사용자를 추가하고, 작업을 할당하고, 중앙 대시보드에서 모두 관리할 수 있습니다. 궁금한 점이 있으면 언제든지 문의해 주세요.