網際內容管理系統在精密機械教學與研究上的應用

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • 主機設定
    • Windows 10
      • Win 網站簽章
      • Win Oauth2
      • Oauth2 原理
      • Nginx
    • Ubuntu設定
      • Ubuntu 簽章
      • 配置 uwsgi
      • xrdp
  • fossiloauth
    • foauth_config
  • fossilapp
  • Fossil
  • 專題報告
  • Reference
    • Flutter
      • Flutter ref
    • discourse
      • 操作管理
    • cd2020pj1
      • Oauth2
    • Network
    • Ref
      • LaTeX
      • Automatic Control
      • 參考步驟
      • ebook1
      • Project
      • Ref2
      • Bond Graphs
      • KMOLBrowser
      • Glowscript
      • Rapydscript
      • Atoms
      • Samples
      • RLearning
      • Ebooks
      • Feedback
      • CMSiMDE
      • Git
      • Windows
      • Ubuntu
      • Heorku
      • Certbot
foauth_config << Previous Next >> Fossil

fossilapp

此一網際程式必須與多倉儲 Fossil SCM 網際伺服器配合運作, 可以讓 @gm 用戶自行在網際介面中新增 Fossil SCM 倉儲.

https://github.com/mdecourse/fossilapp

config.py 設定:

@language python
import authomatic
from authomatic.providers import oauth2

CALLBACK_URL = "https://pj5073.cycu.org:9443/menu"

# read client_id and client_secret from safe place other than put into script
# current setting only allow @gm user login
keyFile = open('./../cycu_org_secret.txt', 'r')
with open('./../cycu_org_secret.txt', 'r') as f:
    key = f.read().splitlines()

CONFIG = {
        'google': {
            'class_': oauth2.Google,
            'consumer_key': key[0],
            'consumer_secret': key[1],
            'scope': oauth2.Google.user_info_scope
        }
    }
    
domain_name = "pj5073.cycu.org"
default_repo = "default"
template_repo = "template"
template_account = "pj2022"
# for Windows 
repo_path = "c:\\pj2022\\multi_repo\\"
# for Ubuntu
#repo_path = "/home/wcm2021/multi_repository/"
fossil_command = "c:\\pj2022\\fossil.exe"
fossil_port = "5443"
flask_port = "9443"
uwsgi = True

# derived
default_repo_path = repo_path+default_repo+".fossil"
template_repo_path = repo_path+template_repo+".fossil"
flask_url = "https://"+domain_name+":"+flask_port
flask_menu = "https://"+domain_name+":"+flask_port+"/menu"
login_url = "https://"+domain_name+":"+fossil_port+"/"+default_repo+"/login"
menu_url = "https://"+domain_name+":"+flask_port+"/menu"
CALLBACK_URL = flask_menu


foauth_config << Previous Next >> Fossil

Copyright © All rights reserved | This template is made with by Colorlib