diff --git a/docs/index.html b/docs/index.html index 8e1889e7..536fa28d 100755 --- a/docs/index.html +++ b/docs/index.html @@ -167,14 +167,14 @@ $ make publish GOTENBERG_USER_GID=You may also add it in your Docker Compose stack:
-version: '3' +version: '3' -services: +services: # your other services - gotenberg: - image: thecodingmachine/gotenberg:6 + gotenberg: + image: thecodingmachine/gotenberg:6@@ -332,11 +332,13 @@ The hard limit is 100 MB and is defined by Google Chrome itself. See the rpcc buffer size section.-+
--Ignore certificate errors
+Google Chrome ignore certificate errorsBy default the chrome instance will not accept certificate errors when using the URL print method. Setting this environment variable to
+"1"will allow insecure connections to be used. In dev environment for example. Be careful with this! Do not use in production.When performing a URL conversion, Google Chrome will not accept certificate errors .
+ +You may allow insecure connections by setting
GOOGLE_CHROME_IGNORE_CERTIFICATE_ERRORSvariable to"1". You should be careful with this feature and only enable it in your development environment.@@ -1706,14 +1708,14 @@ if the API is under heavy load.
For instance, using the following Docker Compose file:
-version: '3' +version: '3' -services: +services: # your other services - gotenberg: - image: thecodingmachine/gotenberg:6 + gotenberg: + image: thecodingmachine/gotenberg:6You may now launch your services using:
diff --git a/internal/pkg/conf/conf.go b/internal/pkg/conf/conf.go index 3f3cbe99..4ad311ba 100644 --- a/internal/pkg/conf/conf.go +++ b/internal/pkg/conf/conf.go @@ -40,46 +40,46 @@ const ( // DefaultGoogleChromeRpccBufferSizeEnvVar contains the name // of the environment variable "DEFAULT_GOOGLE_CHROME_RPCC_BUFFER_SIZE". DefaultGoogleChromeRpccBufferSizeEnvVar string = "DEFAULT_GOOGLE_CHROME_RPCC_BUFFER_SIZE" - // GoogleChromeIgnoreCertificateErrorsEnvVar contains the name - // of the environment variable "GOOGLE_CHROME_IGNORE_CERTIFICATE_ERRORS". + // GoogleChromeIgnoreCertificateErrorsEnvVar contains the name + // of the environment variable "GOOGLE_CHROME_IGNORE_CERTIFICATE_ERRORS". GoogleChromeIgnoreCertificateErrorsEnvVar string = "GOOGLE_CHROME_IGNORE_CERTIFICATE_ERRORS" ) // Config contains the application // configuration. type Config struct { - maximumWaitTimeout float64 - maximumWaitDelay float64 - maximumWebhookURLTimeout float64 - defaultWaitTimeout float64 - defaultWebhookURLTimeout float64 - defaultListenPort int64 - disableGoogleChrome bool - disableUnoconv bool - googleChromeIgnoreCertificateErrors bool - logLevel xlog.Level - rootPath string - maximumGoogleChromeRpccBufferSize int64 - defaultGoogleChromeRpccBufferSize int64 + maximumWaitTimeout float64 + maximumWaitDelay float64 + maximumWebhookURLTimeout float64 + defaultWaitTimeout float64 + defaultWebhookURLTimeout float64 + defaultListenPort int64 + disableGoogleChrome bool + disableUnoconv bool + googleChromeIgnoreCertificateErrors bool + logLevel xlog.Level + rootPath string + maximumGoogleChromeRpccBufferSize int64 + defaultGoogleChromeRpccBufferSize int64 } // DefaultConfig returns the default // configuration. func DefaultConfig() Config { return Config{ - maximumWaitTimeout: 30.0, - maximumWaitDelay: 10.0, - maximumWebhookURLTimeout: 30.0, - defaultWaitTimeout: 10.0, - defaultWebhookURLTimeout: 10.0, - defaultListenPort: 3000, - disableGoogleChrome: false, - disableUnoconv: false, - logLevel: xlog.InfoLevel, - rootPath: "/", - maximumGoogleChromeRpccBufferSize: 104857600, // ~100 MB - defaultGoogleChromeRpccBufferSize: 1048576, // 1 MB - googleChromeIgnoreCertificateErrors: false, + maximumWaitTimeout: 30.0, + maximumWaitDelay: 10.0, + maximumWebhookURLTimeout: 30.0, + defaultWaitTimeout: 10.0, + defaultWebhookURLTimeout: 10.0, + defaultListenPort: 3000, + disableGoogleChrome: false, + disableUnoconv: false, + logLevel: xlog.InfoLevel, + rootPath: "/", + maximumGoogleChromeRpccBufferSize: 104857600, // ~100 MB + defaultGoogleChromeRpccBufferSize: 1048576, // 1 MB + googleChromeIgnoreCertificateErrors: false, } }