Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image Modified



PDFSign Builder docker image includes a default configuration inside.

You must overwrite that definition to include your own company or project tenants.

PDFSign BuilderĀ can manage several tenants.

Table of Contents
maxLevel2
minLevel2
indentcircle


Tenant Configuration



Environment Variables

Configure the following variables to customize your instance.


KeyDescriptionValue example
LICENSELicense valueBase64 String
LANGUAGEDefault language to be used.en

Volumes

The following volumes can be mounted on the Docker image to overwrite the variables.

Source (host)Path (container)Description
./config/opt/pdf-signer-backend/configConfiguration directory
./log/opt/pdf-signer-backend/logLog directory
./pdfs/opt/pdf-signer-backend/pdfsTemporary PDF files repository

Configuration files

The following files define app behavior.

FileDescriptionDefault Value
application.properties

Main application configuration.


log4j2.xml

Log configuration.
keystore.p12Keystore, in pkcs12 format, used to configure HTTPS connection.


Application.properties

Code Block
titleApplication.properties
# Auto-cleaning PDF reposotory

pdfsigner.presigner.cleaner-interval-seconds=30
pdfsigner.presigner.expiration-seconds=120
presigner.pdf.cleaner-interval-minutes=1
presigner.pdf.time-before-delete-minutes=5

# Log configuration
logging.config=config/log4j2.xml

# HTTPS configuration
# server.port=8443
# server.ssl.key-store-type=PKCS12
# server.ssl.key-store=config/keystore.p12
# server.ssl.key-store-password=123456
# server.ssl.key-alias=pdf-signer
# security.require-ssl=true

# Connection configuration
spring.mvc.async.request-timeout=60000

# PDF file size
spring.http.multipart.max-file-size=5MB
spring.http.multipart.max-request-size=5MB


Log configuration

Code Block
titleLog configuration
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="DEBUG">
	<Properties>
        <Property name="LOG_PATTERN">
            %d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${hostName} --- [%15.15t] %-40.40c{1.} : %m%n%ex
        </Property>
    </Properties>
    <Appenders>
    	<Console name="ConsoleAppender" target="SYSTEM_OUT">
            <PatternLayout pattern="${LOG_PATTERN}"/>
        </Console>
		<RollingFile name="FileAppender" 
					 fileName="log/server.log" 
					 filePattern="log/server-%d{MM-dd-yyyy}.log">
			<PatternLayout pattern="${LOG_PATTERN}"/>
			<Policies>
		        <SizeBasedTriggeringPolicy size="20 MB"/>
		    </Policies>
		    <DefaultRolloverStrategy max="20"/>
		</RollingFile>
    </Appenders>
    <Loggers>
    	<Root level="info">
    		<AppenderRef ref="ConsoleAppender"/>
            <AppenderRef ref="FileAppender"/>
        </Root>
        <Logger name="com.certisur" level="debug" additivity="false">
        	<AppenderRef ref="ConsoleAppender"/>
            <AppenderRef ref="FileAppender"/>
        </Logger>
    </Loggers>
</Configuration>


.