# identify the component configuration used to define the site:
site-definition site.zcml

# Turn off Zope3 developer mode.
devmode off

# number of bytecode instructions to execute between checks for
# interruptions (SIGINTR, thread switches):
interrupt-check-interval 200

# Handler threads
threads 4

<server>
  type HTTP
  address 10033
</server>

# non-persistent in-memory storage
<zodb>
  <mappingstorage/>
</zodb>

<accesslog>
  <logfile>
    path /srv/beta.launchpad.net/beta-logs/beta3-access.log
  </logfile>
</accesslog>

<eventlog>
  <logfile>
    path /srv/beta.launchpad.net/beta-logs/beta3.log
  </logfile>
</eventlog>

<canonical default>
    dbname launchpad_prod
    dbhost jubany.ubuntu.com
    # Might want this on, but for now test what will be seen in production
    show_tracebacks false
    bounce_address bounces@canonical.com

    pid_dir /srv/beta.launchpad.net/var

    <launchpad>
        # restrict_to_team launchpad-beta-testers
        site_message We're not beta testing any features at the moment.
        # CREATE ROLE beta3 LOGIN IN ROLE launchpad
        dbuser beta3
        errors_address launchpad-error-reports@lists.canonical.com
        # Bugs domain matches production, as production email gateway
        # is being used.
        bugs_domain bugs.launchpad.net

        <virtual_hosts>
            use_https yes
            <mainsite>
                hostname beta.launchpad.net
                althostnames localhost, potassium.ubuntu.com
            </mainsite>
            <api>
                hostname api.beta.launchpad.net
            </api>
            <blueprints>
                hostname blueprints.beta.launchpad.net
            </blueprints>
            <code>
                hostname code.beta.launchpad.net
            </code>
            <translations>
                hostname translations.beta.launchpad.net
            </translations>
            <bugs>
                hostname bugs.beta.launchpad.net
            </bugs>
            <answers>
                hostname answers.beta.launchpad.net
            </answers>
            <openid>
                hostname login.beta.launchpad.net
            </openid>
            <shipitubuntu>
                hostname ubuntu.shipit.beta.lauchpad.net
            </shipitubuntu>
            <shipitkubuntu>
                hostname kubuntu.shipit.beta.lauchpad.net
            </shipitkubuntu>
            <shipitedubuntu>
                hostname edubuntu.shipit.beta.lauchpad.net
            </shipitedubuntu>
            <xmlrpc>
                hostname xmlrpc.beta.launchpad.net
            </xmlrpc>
            <xmlrpc-private>
                hostname xmlrpc-private.launchpad.net
            </xmlrpc-private>
            <feeds>
                hostname feeds.launchpad.net
                # don't link to ssl for feeds
                rooturl http://feeds.launchpad.net/
            </feeds>
        </virtual_hosts>

        db_statement_timeout 25000
        soft_request_timeout 10000

        <launchpad_session>
            dbhost jubany.ubuntu.com
            dbuser session_beta3
            dbname session_prod
            cookie beta
        </launchpad_session>
        <launchpad_errorreports>
            errordir /srv/beta.launchpad.net/beta-logs
            oops_prefix BC
            copy_to_zlog false
        </launchpad_errorreports>
    </launchpad>

    <productreleasefinder>
        dbuser productreleasefinder
    </productreleasefinder>

    <librarian>
        dbuser librarian
        upload_host mizuho.ubuntu.com
        upload_port 9090
        download_host mizuho.ubuntu.com
        download_port 8000
        download_url http://launchpadlibrarian.net/
        buildd_download_url http://launchpadlibrarian.net/
        <librarian_server>
            root /var/tmp/fatsam
        </librarian_server>
        <librarian_gc>
            dbuser librariangc
        </librarian_gc>
    </librarian>

    <malone>
        # The From address for Malone email interface errors
        bugmail_error_from_address noreply@bugs.launchpad.net
        buglist_batch_size 50
    </malone>

    <shipit>
        # XXX: salgado 2006-06-16 bug=50033:
        # Even though this is empty, it must be kept so that the default
        # values are used. See https://launchpad.net/bugs/50033 for details.
    </shipit>

    <rosetta>
        <poimport>
            dbuser poimport
        </poimport>
        <rosettaadmin>
            dbuser rosettaadmin
        </rosettaadmin>
    </rosetta>

    <distributionmirrorprober>
        dbuser distributionmirror
        cdimage_file_list_url http://releases.ubuntu.com/.manifest
        timeout 30
    </distributionmirrorprober>

    <buildsequencer>
        launch no
    </buildsequencer>

    <cveupdater>
        dbuser cve
    </cveupdater>

    <zopeless>
        send_email no
        smtp_host localhost
        smtp_port 25
    </zopeless>

    <gpghandler>
        host keyserver.internal 
        public_host keyserver.ubuntu.com
        port 11371
    </gpghandler>

    <statistician>
        dbuser statistician
    </statistician>

    <processmail>
        dbuser processmail
    </processmail>

    <answertracker>
        dbuser answertracker
    </answertracker>

    <uploadqueue>
        dbuser queued
    </uploadqueue>

    <codehosting>
        # XXX: MichaelHudson 2007-08-31
        # Even though this is empty, it must be kept so that the default
        # values are used. See https://launchpad.net/bugs/50033 for details.
    </codehosting>

    <codeimport>
    </codeimport>

    <personalpackagearchive>
    </personalpackagearchive>

    <archivepublisher>
    </archivepublisher>

    # We can't use just </mailman> because ZConfig is a huge piece of crap.
    <mailman>
    </mailman>

    <karmacacheupdater>
        # Configuration used to run the karmacache updater.
        dbuser karma
    </karmacacheupdater>

    <targetnamecacheupdater>
        # Configuration used to run the bugtask targetnamecache updater.
        dbuser targetnamecacheupdater
    </targetnamecacheupdater>

    <expiredmembershipsflagger>
        dbuser teammembership
    </expiredmembershipsflagger>

</canonical>


# This is the config used by the test runner.
<canonical testrunner>
    dbname launchpad_ftest
    show_tracebacks true
    # chunkydiff may be turned off temporarily to help diagnose test
    # failures, but please don't commit this setting to rocketfuel.
    chunkydiff on

    bounce_address bounces@canonical.com

    <launchpad>
        dbuser launchpad
        errors_address launchpad-error-reports@lists.canonical.com
        bugs_domain bugs.launchpad.net
        <launchpad_errorreports>
            errordir /var/tmp/lperr.test
            oops_prefix T
            copy_to_zlog false
        </launchpad_errorreports>
        <launchpad_session>
            dbuser session
            dbname launchpad_ftest
        </launchpad_session>
    </launchpad>
    <librarian>
        dbuser librarian
        upload_host localhost
        upload_port 59090
        download_host localhost
        download_port 58000
        download_url http://localhost:58000/
        buildd_download_url http://localhost:58000/
        <librarian_server>
            launch no
            root /var/tmp/fatsam.test
        </librarian_server>
    </librarian>
    <zopeless>
        send_email false
    </zopeless>

    <supermirror>
        dbuser supermirror
        branchesdest /srv/sm-ng/mirrors
        masterlock /srv/sm-ng/masterlock
    </supermirror>
</canonical>
