arxiv.submission.config module¶
Submission core configuration parameters.
-
arxiv.submission.config.AWS_ACCESS_KEY_ID= 'nope'¶ Access key for requests to AWS services.
If
VAULT_ENABLEDisTrue, this will be overwritten.
-
arxiv.submission.config.AWS_REGION= 'us-east-1'¶ Default region for calling AWS services.
-
arxiv.submission.config.AWS_SECRET_ACCESS_KEY= 'nope'¶ Secret auth key for requests to AWS services.
If
VAULT_ENABLEDisTrue, this will be overwritten.
-
arxiv.submission.config.BASE_SERVER= 'arxiv.org'¶ Base arXiv server.
-
arxiv.submission.config.CLASSIC_DATABASE_URI= 'sqlite:///'¶ Full database URI for the classic system.
-
arxiv.submission.config.CLASSIFIER_ENDPOINT= 'http://localhost:8000/'¶ Full URL to the root classifier service API endpoint.
If not explicitly provided, this is composed from
CLASSIFIER_HOST,CLASSIFIER_PORT,CLASSIFIER_PROTO, andCLASSIFIER_PATH.
-
arxiv.submission.config.CLASSIFIER_HOST= 'localhost'¶ Hostname or addreess of the classifier service.
-
arxiv.submission.config.CLASSIFIER_PATH= ''¶ Path at which the classifier service is deployed.
-
arxiv.submission.config.CLASSIFIER_PORT= '8000'¶ Port for the classifier service.
-
arxiv.submission.config.CLASSIFIER_PROTO= 'http'¶ Protocol for the classifier service.
-
arxiv.submission.config.CLASSIFIER_VERIFY= False¶ Enable/disable SSL certificate verification for classifier service.
-
arxiv.submission.config.COMPILER_ENDPOINT= 'https://arxiv.org:443/'¶ Full URL to the root compiler service API endpoint.
If not explicitly provided, this is composed from
COMPILER_HOST,COMPILER_PORT,COMPILER_PROTO, andCOMPILER_PATH.
-
arxiv.submission.config.COMPILER_HOST= 'arxiv.org'¶ Hostname or addreess of the compiler service.
-
arxiv.submission.config.COMPILER_PATH= ''¶ Path at which the compiler service is deployed.
-
arxiv.submission.config.COMPILER_PORT= '443'¶ Port for the compiler service.
-
arxiv.submission.config.COMPILER_PROTO= 'https'¶ Protocol for the compiler service.
-
arxiv.submission.config.COMPILER_VERIFY= True¶ Enable/disable SSL certificate verification for compiler service.
-
arxiv.submission.config.DEFAULT_SAVE_RETRY_DELAY= 30¶ Delay between retry attempts when storing/emiting a submission event.
-
arxiv.submission.config.DEFAULT_SENDER= 'noreply@arxiv.org'¶ Default sender address for e-mail.
-
arxiv.submission.config.EMAIL_ENABLED= True¶ Enable/disable sending e-mail. Default is enabled (True).
-
arxiv.submission.config.ENABLE_CALLBACKS= True¶ Enable/disable the
Event.bind()feature.
-
arxiv.submission.config.EXTERNAL_URL_SCHEME= 'https'¶ Scheme to use for external URLs.
-
arxiv.submission.config.FILEMANAGER_ENDPOINT= 'https://arxiv.org:443/'¶ Full URL to the root filemanager service API endpoint.
If not explicitly provided, this is composed from
FILEMANAGER_HOST,FILEMANAGER_PORT,FILEMANAGER_PROTO, andFILEMANAGER_PATH.
-
arxiv.submission.config.FILEMANAGER_HOST= 'arxiv.org'¶ Hostname or addreess of the filemanager service.
-
arxiv.submission.config.FILEMANAGER_PATH= ''¶ Path at which the filemanager service is deployed.
-
arxiv.submission.config.FILEMANAGER_PORT= '443'¶ Port for the filemanager service.
-
arxiv.submission.config.FILEMANAGER_PROTO= 'https'¶ Protocol for the filemanager service.
-
arxiv.submission.config.FILEMANAGER_VERIFY= True¶ Enable/disable SSL certificate verification for filemanager service.
-
arxiv.submission.config.JWT_SECRET= None¶ Secret key for signing + verifying authentication JWTs.
-
arxiv.submission.config.KINESIS_ENDPOINT= None¶ Alternate endpoint for connecting to Kinesis.
If
None, uses the boto3 defaults for theAWS_REGION. This is here mainly to support development with localstack or other mocking frameworks.
-
arxiv.submission.config.KINESIS_SHARD_ID= '0'¶ Shard ID for stream producer.
-
arxiv.submission.config.KINESIS_STREAM= 'SubmissionEvents'¶ Name of the stream on which to produce and consume events.
-
arxiv.submission.config.KINESIS_VERIFY= True¶ Enable/disable TLS certificate verification when connecting to Kinesis.
This is here support development with localstack or other mocking frameworks.
-
arxiv.submission.config.LOGLEVEL= 20¶ Logging verbosity.
See `https://docs.python.org/3/library/logging.html#levels`_.
-
arxiv.submission.config.MAX_SAVE_RETRIES= 25¶ Number of times to retry storing/emiting a submission event.
-
arxiv.submission.config.NAMESPACE= None¶ Namespace in which this service is deployed; to qualify keys for secrets.
-
arxiv.submission.config.PLAINTEXT_ENDPOINT= 'https://arxiv.org:443/'¶ Full URL to the root plaintext extraction service API endpoint.
If not explicitly provided, this is composed from
PLAINTEXT_HOST,PLAINTEXT_PORT,PLAINTEXT_PROTO, andPLAINTEXT_PATH.
-
arxiv.submission.config.PLAINTEXT_HOST= 'arxiv.org'¶ Hostname or addreess of the plaintext extraction service.
-
arxiv.submission.config.PLAINTEXT_PATH= ''¶ Path at which the plaintext extraction service is deployed.
-
arxiv.submission.config.PLAINTEXT_PORT= '443'¶ Port for the plaintext extraction service.
-
arxiv.submission.config.PLAINTEXT_PROTO= 'https'¶ Protocol for the plaintext extraction service.
-
arxiv.submission.config.PLAINTEXT_VERIFY= True¶ Enable/disable certificate verification for plaintext extraction service.
-
arxiv.submission.config.SERVER_NAME= 'submit.arxiv.org'¶ The name of this server.
-
arxiv.submission.config.SMTP_HOSTNAME= 'localhost'¶ Hostname for the SMTP server.
-
arxiv.submission.config.SMTP_LOCAL_HOSTNAME= None¶ Local host name to include in SMTP request.
-
arxiv.submission.config.SMTP_PASSWORD= 'foopass'¶ Password for the SMTP server.
-
arxiv.submission.config.SMTP_PORT= 0¶ SMTP service port.
-
arxiv.submission.config.SMTP_SSL= False¶ Enable/disable SSL for SMTP. Default is disabled.
-
arxiv.submission.config.SMTP_USERNAME= 'foouser'¶ Username for the SMTP server.
-
arxiv.submission.config.SQLALCHEMY_DATABASE_URI= 'sqlite:///'¶ Full database URI for the classic system.
-
arxiv.submission.config.SQLALCHEMY_TRACK_MODIFICATIONS= False¶ Track modifications feature should always be disabled.
-
arxiv.submission.config.SUPPORT_EMAIL= 'help@arxiv.org'¶ E-mail address for user support.
-
arxiv.submission.config.URLS= [('submission', '/<int:submission_id>', 'submit.arxiv.org'), ('confirmation', '/<int:submission_id>/confirmation', 'submit.arxiv.org')]¶ URLs for external services, for use with
flask.url_for().This subset of URLs is common only within submit, for now - maybe move to base if these pages seem relevant to other services.
For details, see
arxiv.base.urls.
-
arxiv.submission.config.WAIT_FOR_SERVICES= False¶ Disable/enable waiting for upstream services to be available on startup.
-
arxiv.submission.config.WAIT_ON_STARTUP= 0¶ Number of seconds to wait before checking upstream services on startup.