-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcas.tac.example
More file actions
23 lines (16 loc) · 795 Bytes
/
Copy pathcas.tac.example
File metadata and controls
23 lines (16 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Application modules
import txcas.settings
# External modules
from twisted.cred.error import Unauthorized
#------------------------------------------------------------------------------
# REPLACE THIS STUFF WITH YOUR SPECIFICS
#------------------------------------------------------------------------------
# What endpoint to listen on
# E.g. 'ssl:port=443:privateKey=/etc/ssl/server.pem:extraCertChain=/etc/ssl/chain.pem:sslmethod=SSLv3_METHOD:dhParameters=dh_param_1024.pem'
ENDPOINT = 'tcp:8080'
#------------------------------------------------------------------------------
from twisted.application import service
from txcas.service import CASService
application = service.Application('txcas')
cas_service = CASService(endpoint_s=ENDPOINT)
cas_service.setServiceParent(application)