[정보] leantime .env 파일(naver smtp)

2024. 1. 9. 10:42·기타정보

GOOGLE SMTP가 안되는 현상이 있어서 네이버 SMTP 로 활용했다.

설정하는데 너무 스트래스였다.

https://github.com/Leantime/docker-leantime

 

GitHub - Leantime/docker-leantime: Official Docker Image for Leantime https://leantime.io

Official Docker Image for Leantime https://leantime.io - GitHub - Leantime/docker-leantime: Official Docker Image for Leantime https://leantime.io

github.com

 

앞단에 CloudFlare 리버스 프록시를 가져다쓰면 추가설정이 필요하니 그냥 포트 오픈하는게 속 시원하다.

 

root@111-leantime:~/server/docker-leantime# cat .env 
# This is a sample configuration file with all possible configuration options.
# If you don't want to maintain a file like this you can pass in all variables via Server Variables

## Minimum Configuration, these are required for installation
LEAN_PORT = 80
LEAN_APP_URL = ''                             # Base URL, only needed for subfolder installation
LEAN_APP_DIR = ''                             # Base of application without trailing slash (used for cookies), e.g, /leantime

LEAN_PORT = '8081'

LEAN_DEBUG = 0                                     # Debug flag

# Database - MySQL container
MYSQL_ROOT_PASSWORD = 'changeme123'                 # Database password
MYSQL_DATABASE = 'leantime'                         # Database name
MYSQL_USER = 'lean'                                 # Database username
MYSQL_PASSWORD = 'changeme123'                      # Database password

# Database - leantime container
LEAN_DB_HOST = 'mysql_leantime'                    # Database host 
LEAN_DB_USER = 'lean'                              # Database username (needs to be the same as MYSQL_USER)
LEAN_DB_PASSWORD = 'changeme123'                   # Database password (needs to be the same as MYSQL_PASSWORD)
LEAN_DB_DATABASE = 'leantime'                      # Database name (needs to be the same as MYSQL_DATABASE)
LEAN_DB_PORT = '3306'                              # Database port


## Optional Configuration, you may omit these from your .env file

## Default Settings
LEAN_SITENAME = 'Leantime'                         # Name of your site, can be changed later
LEAN_LANGUAGE = 'en-US'                            # Default language
LEAN_DEFAULT_TIMEZONE = 'America/Los_Angeles'      # Set default timezone
LEAN_ENABLE_MENU_TYPE = false                      # Enable to specifiy menu on a project by project basis
LEAN_SESSION_PASSWORD = '3evBlq9zdUEuzKvVJHWWx3QzsQhturBApxwcws2m'  #Salting sessions. Replace with a strong password
LEAN_SESSION_EXPIRATION = 28800                    # How many seconds after inactivity should we logout?  28800seconds = 8hours
LEAN_LOG_PATH = null                                # Default Log Path (including filename), if not set /logs/error.log will be used

## Look & Feel, these settings are available in the UI and can be overwritten there.
LEAN_LOGO_PATH = '/images/logo.svg'                # Default logo path, can be changed later
LEAN_PRINT_LOGO_URL = '/images/logo.jpg'           # Default logo URL use for printing (must be jpg or png format)
LEAN_DEFAULT_THEME = 'default'                     # Default theme
LEAN_PRIMARY_COLOR = '#1b75bb'                     # Primary Theme color
LEAN_SECONDARY_COLOR = '#81B1A8'                   # Secondary Theme Color

## Fileuploads

# Local File Uploads
LEAN_USER_FILE_PATH = 'userfiles/'                 # Local relative path to store uploaded files (if not using S3)
LEAN_DB_BACKUP_PATH = 'backupdb/'                  # Local relative path to store backup files, need permission to write

# S3 File Uploads
# LEAN_USE_S3 = false                                # Set to true if you want to use S3 instead of local files
# LEAN_S3_KEY = ''                                   # S3 Key
# LEAN_S3_SECRET = ''                                # S3 Secret
# LEAN_S3_BUCKET = ''                                # Your S3 bucket
# LEAN_S3_USE_PATH_STYLE_ENDPOINT = false            # Sets the endpoint style: false => https://[bucket].[endpoint] ; true => https://[endpoint]/[bucket]
# LEAN_S3_REGION = ''                                # S3 region
# LEAN_S3_FOLDER_NAME = ''                           # Foldername within S3 (can be emtpy)
# LEAN_S3_END_POINT = null                           # S3 EndPoint S3 Compatible (https://sfo2.digitaloceanspaces.com)

## Email
LEAN_EMAIL_RETURN = 'NAVER_EMAIL'                             # Return email address, needs to be valid email address format
LEAN_EMAIL_USE_SMTP = true                        # Use SMTP? If set to false, the default php mail() function will be used
LEAN_EMAIL_SMTP_HOSTS = 'smtp.naver.com'                         # SMTP host
LEAN_EMAIL_SMTP_AUTH = true                        # SMTP authentication required
LEAN_EMAIL_SMTP_USERNAME = 'NAVER_ID'                      # SMTP username
LEAN_EMAIL_SMTP_PASSWORD = 'NAVER_PW'                      # SMTP password
LEAN_EMAIL_SMTP_AUTO_TLS = true                    # SMTP Enable TLS encryption automatically if a server supports it
LEAN_EMAIL_SMTP_SECURE = 'TLS'                        # SMTP Security protocol (usually one of: TLS, SSL, STARTTLS)
LEAN_EMAIL_SMTP_SSLNOVERIFY = false                # SMTP Allow insecure SSL: Don't verify certificate, accept self-signed, etc.
LEAN_EMAIL_SMTP_PORT = 587                          # Port (usually one of 25, 465, 587, 2526)

## Ldap
# LEAN_LDAP_USE_LDAP = false                         # Set to true if you want to use LDAP
# LEAN_LDAP_LDAP_TYPE = 'OL'                         # Select the correct directory type. Currently Supported: OL - OpenLdap, AD - Active Directory
# LEAN_LDAP_HOST = ''                                # FQDN
# LEAN_LDAP_PORT = 389                               # Default Port
# LEAN_LDAP_DN = ''                                  # Location of users, example: CN=users,DC=example,DC=com

                                                   # Leantime->Ldap attribute mapping
# LEAN_LDAP_KEYS="{
#         \"username\":\"uid\",
#         \"groups\":\"memberOf\",
#         \"email\":\"mail\",
#         \"firstname\":\"displayname\",
#         \"lastname\":\"\",
#         \"phonenumber\":\"telephoneNumber\"
# }"

# For AD use these default attributes
# LEAN_LDAP_KEYS="{
#        \"username\":\"cn\",
#        \"groups\":\"memberOf\",
#        \"email\":\"mail\",
#        \"firstname\":\"givenName\",
#        \"lastname\":\"sn\",
#        \"phonenumber\":\"telephoneNumber\"
#      }"

# LEAN_LDAP_DEFAULT_ROLE_KEY = 20;                   # Default Leantime Role on creation. (set to editor)

# Default role assignments upon first login.
# (Optional) Can be updated later in user settings for each user
# LEAN_LDAP_GROUP_ASSIGNMENT="{
#                \"5\": {
#                  \"ltRole\":\"readonly\",
#                  \"ldapRole\":\"readonly\"
#                },
#                \"10\": {
#                  \"ltRole\":\"commenter\",
#                   \"ldapRole\":\"commenter\"
#                },
#                \"20\": {
#                  \"ltRole\":\"editor\",
#                   \"ldapRole\":\"editor\"
#                },
#                \"30\": {
#                  \"ltRole\":\"manager\",
#                   \"ldapRole\":\"manager\"
#                },
#                \"40\": {
#                  \"ltRole\":\"admin\",
#                   \"ldapRole\":\"administrators\"
#                },
#                \"50\": {
#                  \"ltRole\":\"owner\",
#                  \"ldapRole\":\"administrators\"
#                }
# }"

## OpenID Connect
# required
# LEAN_OIDC_ENABLE = false
# LEAN_OIDC_CLIENT_ID =
# LEAN_OIDC_CLIENT_SECRET =

# required - the url for your provider (examples down below)
#LEAN_OIDC_PROVIDER_URL =

# optional - these will be read from the well-known configuration if possible
#LEAN_OIDC_AUTH_URL_OVERRIDE =
#LEAN_OIDC_TOKEN_URL_OVERRIDE =
#LEAN_OIDC_JWKS_URL_OVERRIDE =
#LEAN_OIDC_USERINFO_URL_OVERRIDE =

# optional - override the public key for RSA validation
#LEAN_OIDC_CERTIFICATE_STRING =
#LEAN_OIDC_CERTIFICATE_FILE =

# optional - override the requested scopes
#LEAN_OIDC_SCOPES =

# optional - override the keys used for these fields
#LEAN_OIDC_FIELD_EMAIL =
#LEAN_OIDC_FIELD_FIRSTNAME =
#LEAN_OIDC_FIELD_LASTNAME =

## OpenID Connect setting for github
#LEAN_OIDC_PROVIDER_URL = https://token.actions.githubusercontent.com/
#LEAN_OIDC_AUTH_URL_OVERRIDE = https://github.com/login/oauth/authorize
#LEAN_OIDC_TOKEN_URL_OVERRIDE = https://github.com/login/oauth/access_token
#LEAN_OIDC_USERINFO_URL_OVERRIDE = https://api.github.com/user,https://api.github.com/user/emails
#LEAN_OIDC_SCOPES = user:email
#LEAN_OIDC_FIELD_EMAIL = 0.email
저작자표시 비영리 변경금지 (새창열림)

'기타정보' 카테고리의 다른 글

[정보] 이메일 테스트 리눅스 명령어  (0) 2024.01.09
[정보] Zulip 설치  (0) 2024.01.09
[정보] 네트워크 라우팅 설정  (0) 2024.01.07
[정보] nodejs 20 버전 ubnutu에 설치하기  (0) 2023.11.30
[정보] 실습 시 빠르게 지식을 흡수하는 방법  (0) 2023.11.23
'기타정보' 카테고리의 다른 글
  • [정보] 이메일 테스트 리눅스 명령어
  • [정보] Zulip 설치
  • [정보] 네트워크 라우팅 설정
  • [정보] nodejs 20 버전 ubnutu에 설치하기
TwoIceFish
TwoIceFish
https://github.com/TwoIceFIsh
  • TwoIceFish
    Cyber-Luna
    TwoIceFish
  • 전체
    오늘
    어제
    • 분류 전체보기 (601) N
      • 🤖정보보안 (84) N
        • 💙블루팀 (28) N
        • ❤️레드팀 (22)
        • 💜퍼플팀 (1)
        • 💠1분지식 (32)
      • 프로젝트 (15)
        • 💌 정보보안 메일링 시스템 (9)
        • 🔐 인증서 관리 시스템 (1)
        • 🏠금융 커뮤니티 (5)
      • 🐞프로그래밍 (49)
        • Next.js (9)
      • 기타정보 (68)
        • 🌏그릿요거트 (11)
  • 블로그 메뉴

    • 홈
    • 방명록
    • 로켓펀치
    • 깃허브
    • 코코너츠
    • 그릿요거트
  • 링크

  • 공지사항

    • 안녕하세요
  • 인기 글

  • 태그

    servlet 404
    악성메일
    애플페이 설정방법
    부동산 수익률 계산기
    부트스트랩
    ISMS-P
    지갑 앱에 카드 추가
    인증서 여러개
    응답없음
    악성메잃분석
    jsp
    유니티
    eclipse
    메일헤더분석
    Visual Studio
    nmap
    톰캣 서블릿
    서브도메인 인증서
    수익률 계산기
    방벙
    SK하이닉스
    vpn 오픈소스
    단일 도메인 인증서 여러개
    삼성전자우
    와이파이 비밀번호 탈취
    vpn 설치
    tomcat servlet
    코코넛츠
    모의해킹
    jsp 200
  • 최근 댓글

  • hELLO· Designed By정상우.v4.10.0
TwoIceFish
[정보] leantime .env 파일(naver smtp)
상단으로

티스토리툴바