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

Doesn't respect port in base URL #7259

Open
realpixelcode opened this issue Feb 15, 2024 · 1 comment
Open

Doesn't respect port in base URL #7259

realpixelcode opened this issue Feb 15, 2024 · 1 comment

Comments

@realpixelcode
Copy link

realpixelcode commented Feb 15, 2024

Environment

  • Version: 2.6.8
  • Installation: make install
  • PHP version: 8.2.7
  • OS: Raspberry Pi OS Bookworm, Kernel 6.1.0-rpi6-rpi-v8
  • Database: mysql Ver 15.1 Distrib 10.11.6-MariaDB
  • Parameters: domain_name: 'https://wallabag.example.org:1234
My app/config/parameters.yml is:
parameters:
  database_driver: pdo_mysql
  database_host: 127.0.0.1
  database_port: 3306
  database_name: wallabag
  database_user: wb
  database_password: ...
  database_path: null
  database_table_prefix: wallabag_
  database_socket: null
  database_charset: utf8mb4
  domain_name: 'https://wallabag.example.org:1234'
  server_name: 'Wallabag'
  mailer_dsn: 'smtp://127.0.0.1'
  locale: de
  secret: ...
  twofactor_sender: no-reply@wallabag.org
  fosuser_registration: false
  fosuser_confirmation: false
  fos_oauth_server_access_token_lifetime: 3600
  fos_oauth_server_refresh_token_lifetime: 1209600
  from_email: no-reply@wallabag.org
  rss_limit: 50
  rabbitmq_host: localhost
  rabbitmq_port: 5672
  rabbitmq_user: guest
  rabbitmq_password: guest
  rabbitmq_prefetch_count: 10
  redis_scheme: tcp
  redis_host: localhost
  redis_port: 6379
  redis_path: null
  redis_password: null
  sentry_dsn: null

What steps will reproduce the bug?

  1. Set up Wallabag for the first time.
  2. Include a port number in the domain name.
  3. Visit that base URL (initial login page).
  4. Wallabag tries to fetch
  • material.css
  • router.js
  • material.js
  • logo-wallabag.svg
  • apple-touch-icon-152.png
  • favicon.ico
    from https://wallabag.example.org instead of https://wallabag.example.org:1234.

That's an issue when you're already using the 80 and 443 ports for something else.

@realpixelcode realpixelcode changed the title Doesn't respect port Doesn't respect port in base URL Feb 15, 2024
@GiovanH
Copy link

GiovanH commented Mar 18, 2024

I am running Wallabag in a docker container and I confirm that it is working with a port in the domain name.

That being said, I don't see any issue in your parameters.yml, so I can only offer my case as a data point. I've definitely experienced exactly the scenario you've described here, but it had to do with a misconfigured reverse 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

2 participants