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

Option to change/edit client portal url and/or put client portal under different domain name #5079

Open
roseMix opened this issue Mar 9, 2021 · 13 comments

Comments

@roseMix
Copy link

roseMix commented Mar 9, 2021

What version of Invoice Ninja are you running? ie v4.5 / v5
v5.1.16
What environment are you running?

ZIP

Have you searched existing issues/requests?
yes

Additional context
Since the client portal is essentially separate web app, it would be great to have the option within UI settings of configuring client portal at a different domain, i.e. I have my site at billing.example.com, client logs in at billing.example.com/client. But I don't want my company portal login domain exposed so I would rather put the flutter app under random-string.example.com and client under billing.example.com/client or /pay.

Once I can configure within the client portal app a domain name/url, it should be possible to point apache/nginx config for that domain name to to the client portal app's directory as that domain's web root.

@FBachofner
Copy link

Great suggestion. Here's my enthusiastic +1 !!

I am curious if there might already be a way to write a virtual host config which points to the /client route. This may, of course, be impossible since this is not actually a folder which exists in the /public folder.

However, there is a "routes" folder above the public folder . . . This might be worth playing with, but I would expect potentially significant security implications at least

@turbo124
Copy link
Member

This is on the radar :)

@greyskymedia
Copy link

+10 :)

@boka003
Copy link

boka003 commented Apr 4, 2022

+1

It will be nice if we can choose the client portal URL based on the company.

For example> we have copmany1 and company2, I will like to set copmany1 to invoiceninja.com/company1 and copmany2 to inoviceninja.com/company2

@RonnyLam
Copy link

RonnyLam commented Jul 7, 2022

Another +1

I would like to have something.example.com for the company and client.example.com for the clients.

@turbo124
Copy link
Member

turbo124 commented Jul 8, 2022

@RonnyLam

I believe this should be possible now, to test this, in the companies table of the database there are two columns to adjust

portal_mode should be set to domain

and

portal_domain should be set to the fully qualified domain name you wish ie

https://subdomain.example.com

If this is confirmed as working, we'll make the necessary adjustments in the front and back end.

@RonnyLam
Copy link

RonnyLam commented Jul 8, 2022

@turbo124 I will today, where do I set the root to in nginx? /public or /public/client?

@turbo124
Copy link
Member

turbo124 commented Jul 8, 2022

@RonnyLam always /public

We dont' support removing /client from the URL

@RonnyLam
Copy link

RonnyLam commented Jul 8, 2022

Hi @turbo124,

I have made the change, put the client domain as a second host in nginx, but I keep getting a redirect to the main URL. Not sure if nginx or the application sends the redirect.

@turbo124
Copy link
Member

turbo124 commented Jul 8, 2022

@RonnyLam just to confirm, are the client portal links also redirecting?

@ghost
Copy link

ghost commented Jul 23, 2022

+1 I'm also interested in this. The optional domain URL doesn't seem to do anything in the current version to redirect to /client through the app. However, I did find a workaround that seems to work for Apache:

RedirectMatch ^/$ /client

@n1smithy
Copy link

Hello everyone,

I see that in the Web App there's already a field where to put a portal-URL in. Is the feature already realized?

However, it still seems that this makes no difference for the company or the customer sites. As said above only the URI is (clients.example.com/client) seems to be crucial whether the company's web app or the client's portal appears.

Well, and I have to say, that I'm not yet familiar enough with Nginx to set up the proxy config file correctly.

Maybe anyone from here has a hint?

@turbo124
Copy link
Member

you can certainly customize the client portal domain, however rewriting the /client url to / is sometihng that i don't think is possible without major major changes.

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

No branches or pull requests

7 participants