-
Hello. Thank you for the great SMP implementation! I got the following errors when I tried registering SMP running locally to SML. If you know how to solve this problem or have clues about that, I would like to know. I used a pre-build docker image. error
$ docker build --pull -t phoss-smp-with-config -f Example-Dockerfile-with-configuration .
$ docker run -d --name phoss-smp-with-config -p 8888:8080 -v $PWD/config:/config phoss-smp-with-config Example-Dockerfile-with-configuration #
# Copyright (C) 2015-2019 Philip Helger (www.helger.com)
# philip[at]helger[dot]com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Use an existing image as the basis
FROM phelger/phoss-smp-xml
# Add configuration file paths via system properties
ENV CATALINA_OPTS="$CATALINA_OPTS -Dsmp.server.properties.path=/config/smp-server.properties -Dsmp.webapp.properties.path=/config/webapp.properties -Dconfig.file=/config/application.properties" Click to see `webapp.properties`#
# Copyright (C) 2014-2022 Philip Helger and contributors
# philip[at]helger[dot]com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Global flags for initializer
# For production debug should be false and production should be true
global.debug = false
global.production = false
global.debugjaxws = false
# Central directory where the data should be stored.
# This should be an absolute path in production
# Make sure write access is granted to this directory
webapp.datapath = conf
#webapp.datapath = /var/smp/conf
# Should all files of the application checked for readability?
# This should only be set to true when datapath is a relative directory inside a production version
webapp.checkfileaccess = false
# Is it a test version? E.g. a separate header is shown
webapp.testversion = true
# Use slow, but fancy dynamic table on the start page?
webapp.startpage.dynamictable = false
# Participant list is enabled by default
webapp.startpage.participants.none = false
# Don't show content of extensions by default on start page
webapp.startpage.extensions.show = false
# The name of the Directory implementation
webapp.directory.name = Peppol Directory
# Don't show content of extensions by default in service groups
webapp.servicegroups.extensions.show = false
# Should the /public part show a login
webapp.public.login.enabled = true
# Should the application name and version be shown on the /public part?
webapp.public.showappname = true
# Should the link to the source be shown on the /public part?
webapp.public.showsource = true
# Should the author be shown on the /public part?
webapp.public.showauthor = true
# Configure an imprint on the UI
webapp.imprint.enabled = false
webapp.imprint.text = Responsible person
webapp.imprint.href = https://www.google.com
webapp.imprint.target = _blank
webapp.imprint.cssclasses = mx-3 badge badge-primary
# Content Security Policy
csp.enabled = true
csp.reporting.only = false
csp.reporting.enabled = true
Click to see `application.properties`#
# Copyright (C) 2014-2022 Philip Helger and contributors
# philip[at]helger[dot]com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
## Directory client
pdclient.keystore.type = jks
pdclient.keystore.path = /config/smp-test.jks
pdclient.keystore.password = passwd
pdclient.keystore.key.alias = smp-test
pdclient.keystore.key.password = passwd
pdclient.truststore.type = jks
pdclient.truststore.path = truststore/complete-truststore.jks
pdclient.truststore.password = peppol
# SMP client
smpclient.truststore.type = jks
smpclient.truststore.path = truststore/complete-truststore.jks
smpclient.truststore.password = peppol Click to see `smp-server.properties`#
# Copyright (C) 2014-2022 Philip Helger and contributors
# philip[at]helger[dot]com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# The backend to be used. Can either be "sql" or "xml" or "mongodb". Any other value will result in a startup error
# Default is XML so that the tests run flawlessly
smp.backend = xml
## Keystore data
# The path maybe within the classpath or an absolute file path
smp.keystore.type = jks
smp.keystore.path = /config/smp-test.jks
smp.keystore.password = passwd
smp.keystore.key.alias = smp-test
smp.keystore.key.password = passwd
# This default truststore handles the Peppol PKIs
smp.truststore.type = jks
smp.truststore.path = truststore/complete-truststore.jks
smp.truststore.password = peppol
# Force all paths (links) to be "/" instead of the context path
# This is helpful if the web application runs in a context like "/smp" but is proxied to a root path
smp.forceroot = true
# If this property is specified, it will overwrite the automatically generated URL
# for all cases where absolute URLs are necessary
# This might be helpful when running on a proxied Tomcat behind a web server
#smp.publicurl = http://smp.example.org/
# The SMP ID also used in the SML!
sml.smpid=TEST-SMP-ID1
# SML connection timeout milliseconds
#sml.connection.timeout.ms = 5000
# SML request timeout milliseconds
#sml.request.timeout.ms = 20000
# Enable PEPPOL Directory integration?
smp.peppol.directory.integration.enabled=true
# Use PEPPOL identifiers (with all constraints) or simple, unchecked identifiers?
# Possible values are "peppol", "simple" and "bdxr"
smp.identifiertype=peppol
# Define the type of the REST interface. Use this to switch between PEPPOL and BDXR
# return XMLs. Possible values are "peppol" and "bdxr"
smp.rest.type=peppol
# Log exceptions occurring in the REST API that are returned as HTTP errors?
smp.rest.log.exceptions=false
# Add payload to HTTP responses in case of REST API errors?
smp.rest.payload.on.error=true
# The time zone to be used
#smp.timezone = Europe/Vienna
# http/https Proxy settings
#http.proxyHost = 10.0.0.10
#http.proxyPort = 808
#https.proxyHost = 10.0.0.10
#https.proxyPort = 808 Click to see all stack traces
|
Beta Was this translation helpful? Give feedback.
Answered by
phax
Jun 23, 2022
Replies: 1 comment 19 replies
-
Hmm, this is weird. Thank you for providing such detailed information 👍🏼 My thoughts are going in two different directions:
|
Beta Was this translation helpful? Give feedback.
19 replies
Answer selected by
TaKO8Ki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, this is weird. Thank you for providing such detailed information 👍🏼
My thoughts are going in two different directions:
This is the more likely approach that your network configuration evtl. requires an outbound proxy server and you did not configure one?
What are the "interceptors" between the Dockerized SMP and the Internet?