Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the port of 8080? #1173

Closed
brisk21 opened this issue May 6, 2024 · 4 comments
Closed

How to change the port of 8080? #1173

brisk21 opened this issue May 6, 2024 · 4 comments

Comments

@brisk21
Copy link

brisk21 commented May 6, 2024

image

I want to change the port of 8080

@bluestero
Copy link
Contributor

bluestero commented May 6, 2024

So I also faced this issue, wanted to deploy on the host 0.0.0.0 and port 3000.
So from the directory where you are running the Stirling-PDF, it would create a configs directory there.

That would contain configs.yml and custom_configs.yml
In the custom_configs.yml, add:

server:
  host: 0.0.0.0 #(Can skip if don't want to add any).
  port: 3000 #(or whatever new port you want)

Note: IIRC, the configs directory would be created when you run Stirling-PDF for the first time, so to have the config before that, would have to create a configs folder and add the custom_configs.yml by yourself.

That's it, it would overwrite the config of the configs.yml at the application start, and deploy on the given host and port.
Hope it helps!

@t0mmili
Copy link

t0mmili commented May 15, 2024

@Frooodle It would be really cool if these options were available as env vars, so it's easier to configure docker-compose.

@Frooodle
Copy link
Member

If you are running in docker you have no need to change the port anyway since you can change the docker exposed port instead right?

@t0mmili
Copy link

t0mmili commented May 15, 2024

If you are running in docker you have no need to change the port anyway since you can change the docker exposed port instead right?

It depends. I think it was discussed in other issue.
If on default port 8080 - no problem. But when I redirect to e.g. 8181, it's not working behind nginx proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants