Stirling-PDF
Stirling-PDF copied to clipboard
feature request - change running port
I would prefer to run sPDF on a different port than 8080. I have tried using command: java -Dlocal.server.port=32769 -jar /app.jar
in the docker compose, which does change the 'navigate to' message in the logs, but Tomcat still runs on 8080. Does anyone know how to change the tomcat listening port in sPDF?
Is it not sufficient to simply change the host port in the compose file? For instance:
version: '3.3'
services:
stirling-pdf:
image: frooodle/s-pdf:latest
ports:
- '80:8080'
volumes:
- /location/of/trainingData:/usr/share/tesseract-ocr/4.00/tessdata #Required for extra OCR languages
- /location/of/extraConfigs:/configs
# - /location/of/customFiles:/customFiles/
environment:
- DOCKER_ENABLE_SECURITY=false
Hello, thanks for your reply. I run my containers attached to a wireguard tunnel to allow for access outside the network, using the compose command network_mode: 'container:wireguard'
. In this setting, ports:
does not work as the port is not being published on the host. Therefore, since I can't change the internal port, I am forced to run spdf on a separate wireguard instance to avoid port conflicts. I understand if this is not possible but I just wanted to see if there is an easy way to change the internal HTTP server port. Thanks!
Hi, For my installation it would also be nice to have the option to change the port. I'm using macvlan which allows using http standard ports. Deviating ports are a bit tedious to use.
To change the port for the app itself you can add this in the config/settings.yml file
local:
server:
port: 443
server:
port: 443
Thank you! I can confirm that this works perfectly. Have a great day.
To change the port for the app itself you can add this in the config/settings.yml file
local: server: port: 443 server: port: 443
hi,
I am facing an issue here - I am a noob at this - even after adding the following to the settings.yml file under /configs
local: server: port: 443 server: port: 443
the TOMCAT server is listening on port 8080 and I am unable to successfully deploy stirling-pdf... a noob friendly guide will be really helpful.
Thanks!