본문 바로가기
컴퓨터

[Linux][Ubuntu] Taiga.io 설치하기

by Luyin 2016. 2. 28.



오픈소스 에자일 툴인 Taiga.io 설치 방법에 다루어 볼려고 합니다.

공식사이트에 나와있는 document 설명 만으로는 localhost에서 밖에 운영이 되지 않아 추가적인 설명을 작성하였습니다.


1. 설치환경

Ubuntu 14.04.04 (32bit) 운영체제 설치 후 아무것도 설치하지 않은 깨끗한 상태

Ubuntu 가 설치되어 있는 PC는 공유기 하위의 내부망 IP만을 가지고 있다.


2. 설정 구조


3. 설정

가) taiga-script를 이용한 taiga.io 설치

$ git clone https://github.com/taigaio/taiga-scripts.git
$ cd taiga-scripts
$ bash setup-server.sh


나) ngnix 포트 설정

/etc /nginx/sites-enables/taiga 수정 

server {   

    listen 9000 default_server;

    server_name _;


    large_client_header_buffers 4 32k;


    client_max_body_size 50M;

    charset utf-8;


    access_log /home/luyin/logs/nginx.access.log;

    error_log /home/luyin/logs/nginx.error.log;


    location / {

        root /home/luyin/taiga-front/dist/;

        try_files $uri $uri/ /index.html;

    }


    location /api {

        proxy_set_header Host $http_host;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Scheme $scheme;

        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_pass http://55.101.278.234:8001/api;        

        proxy_redirect off;

    }


    location /static {

        alias /home/luyin/taiga-back/static;

    }


    location /media {

        alias /home/luyin/taiga-back/media;

    }


다) taiga-front 에서 호출하는 taiga-back 주소 변경

~/taiga-front/dist/v-1xxxxx/js/app-loader.js 수정

app-loader.js에서 아래의 항목 부분만 수정

  window.taigaConfig = {

    "api": "http://55.101.278.234:8001/api/v1/",

    "eventsUrl": null,

    "eventsMaxMissedHeartbeats": 5,

    "eventsHeartbeatIntervalTime": 60000,

    "debug": true,

    "defaultLanguage": "en",

    "themes": ["taiga", "material-design", "high-contrast"],

    "defaultTheme": "taiga",

    "publicRegisterEnabled": true,

    "feedbackEnabled": true,

    "privacyPolicyUrl": null,

    "termsOfServiceUrl": null,

    "maxUploadFileSize": null,

   


다) taiga-back에서 로딩시 사용하는 python 스크립트 수정

/taiga-back/settings/local.py 수정

from .common import *


MEDIA_URL = "http://55.101.278.234/media/"

STATIC_URL = "http://55.101.278.234/static/"

ADMIN_MEDIA_PREFIX = "http://55.101.278.234/static/admin/"

SITES["front"]["scheme"] = "http"

SITES["front"]["domain"] = "55.101.278.234"


SECRET_KEY = "theveryultratopsecretkey"


DEBUG = False

TEMPLATE_DEBUG = False

PUBLIC_REGISTER_ENABLED = True


DEFAULT_FROM_EMAIL = "no-reply@example.com"

SERVER_EMAIL = DEFAULT_FROM_EMAIL


# Uncomment and populate with proper connection parameters

# for enable email sending. EMAIL_HOST_USER should end by @domain.tld

#EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"

#EMAIL_USE_TLS = False

#EMAIL_HOST = "localhost"

#EMAIL_HOST_USER = ""

#EMAIL_HOST_PASSWORD = ""

#EMAIL_PORT = 25


# Uncomment and populate with proper connection parameters

# for enable github login/singin.

#GITHUB_API_CLIENT_ID = "yourgithubclientid"

#GITHUB_API_CLIENT_SECRET = "yourgithubclientsecret" 


라) circus 에서 실행할 taiga-back의 포트 번호 설정

/conf/circus.ini 수정

주소가 127.0.0.1 일 경우 localhost 만 접근이 가능하다. 즉,  서버를 동작 중인 Ubuntu PC에서만 접속 가능하므로, 모든 IP가 접속 허용할 수 있도록 0.0.0.0 으로 변경하여야 한다.

[circus]

check_delay = 5

endpoint = tcp://127.0.0.1:5555

pubsub_endpoint = tcp://127.0.0.1:5556

statsd = true


[watcher:taiga]

working_dir = /home/luyin/taiga-back

cmd = gunicorn

args = -w 3 -t 60 --pythonpath=. -b 0.0.0.0:8001 taiga.wsgi

uid = luyin

numprocesses = 1

autostart = true

send_hup = true

stdout_stream.class = FileStream

stdout_stream.filename = /home/luyin/logs/gunicorn.stdout.log

stdout_stream.max_bytes = 10485760

stdout_stream.backup_count = 4

stderr_stream.class = FileStream

stderr_stream.filename = /home/luyin/logs/gunicorn.stderr.log

stderr_stream.max_bytes = 10485760

stderr_stream.backup_count = 4


[env:taiga]

PATH = /home/luyin/.virtualenvs/taiga/bin:/usr/local/sbin:/usr/local/bin:/

usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

TERM=rxvt-256color

SHELL=/bin/bash

USER=taiga

LANG=en_US.UTF-8

HOME=/home/luyin

PYTHONPATH=/home/luyin/.local/lib/python3.4/site-packages 


마) circus 및 nginx 재시작

$ sudo service circus restart

$ sudo service nginx reload



라) iptime 공유기 포트포워딩 설정


이제 http://55.101.278.234:9000 으로 접속시 Taiga.io 를 사용할 수 있다.