ENGroup 網站

  • Home
    • SMap
    • reveal
    • blog
  • About
    • MISC
    • GW
    • Webots
    • FossilSCM
    • Reeborg
    • NX2312
    • Brython
  • PGP
  • Linux
    • Lubuntu
    • Windows
  • Bind
  • Squid
  • RL
    • Rocket
  • cmsimde
About << Previous Next >> GW

MISC

Fossil SCM

網際伺服器:

Windows: fossil server C:\pj2022\repo\pj2022.fossil --port 9000 --https

Ubuntu: fossil http /home/pj2022/repository/pj2022.fossil --https --nojail

fossiloauth

config.py

針對單一倉儲檔案 fossiloauth 中 config.py 設定:

import authomatic
from authomatic.providers import oauth2

# read client_id and client_secret from safe place other than put into script
keyFile = open('./../pme_eng_secret.txt', 'r')
with open('./../pme_eng_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 = "pme.eng.nfu.edu.tw"
default_repo = "pme"
repo_caps = "bfjk234C"
# for Windows 
repo_path = "c:/pj2022/repo/"
# for Ubuntu
#repo_path = "/home/wcm2021/repository/"
fossil_port = "443"
flask_port = "8443"
uwsgi = True

# derived
default_repo_path = repo_path+default_repo+".fossil"
flask_url = "https://"+domain_name+":"+flask_port
flask_forum = "https://"+domain_name+":"+flask_port+"/forum"
# for multiple repository
#login_url = "https://"+domain_name+":"+fossil_port+"/"+default_repo+"/login"
# for single repository
login_url = "https://"+domain_name+":"+fossil_port+"/login"
# for multiple repository
#forum_url = "https://"+domain_name+":"+fossil_port+"/"+default_repo+"/forum"
# for single repository
forum_url = "https://"+domain_name+":"+fossil_port+"/forum"
CALLBACK_URL = flask_forum

setup

Authorised JavaScript origins

URIs:

https://pme.eng.nfu.edu.tw:8443

Authorised redirect URIs

https://pme.eng.nfu.edu.tw:8443/login/google/


About << Previous Next >> GW

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