Comments (15)
That works, but what bothers me about this 'redirection' is that the browser then says /USER next to the address and I don't want that.
That's why I'm leaving it this way now so that I use one instance for each user. Not so wild. :)
from linkstack-docker.
Are you aware that LinkStack does support this by default and you can just configure it in the config? Or is there a specific reason you are trying to solve this in your nginx vhost?
from linkstack-docker.
No, I wasn't aware of that.
But since I host LinkStack locally at my home and don't have IPv4, I have to do this via Nginx.
How do I configure Nginx in LinkStack?
Maybe that already solves my problem?
from linkstack-docker.
I use NGINX for every LinkStack instance I host. If you want your user profile to be your home page, you can set it up easily using LinkStack's internal routing system. Just go to your configuration settings and choose your profile under the "Set user page as Home Page" option.
from linkstack-docker.
Ah okay. I didn't see this option.
But unfortunately that doesn't work for me because I have 3 accounts running on my installation of LinkStack.
Can this be solved another way? Because that bothers me a lot and I don't want to have 3 separate instances running on my Proxmox server for LinkStack, since each instance requires more RAM etc....
from linkstack-docker.
This only works for one user
from linkstack-docker.
Thanks, I've now solved it the way you did:
A new instance was opened in Proxmox for each user. It's a shame that this can't be solved any other way.
But I still thank you for your help! <3
from linkstack-docker.
I'm not saying it's impossible using NGINX, just with the setting in the app. I'm pretty sure this can be done, especially with simple redirects. Using NGINX should help you achieve it, though I'm not entirely sure if I can assist you directly. Still, it should definitely work.
from linkstack-docker.
Yes, I have already tried several or 2 variants in NGINX and neither of them worked.
Once under Locations I specified the IP/@user and once just IP and then this in the field for other configurations at the bottom:
location = / {
return 301 /@user;
}
That didn't work either.
So thank you, at least that's how it works. :)
from linkstack-docker.
Doing the redirect is easy. Just add the domains you want to redirect to your block.
Then add this somewhere to your block:
if ($host = 'exmaple.com') {
return 301 https://xyz.com/@admin;
}
from linkstack-docker.
@NoFloXx This is now a full feature: https://github.com/LinkStackOrg/LinkStack/releases/tag/v4.6.0#3
from linkstack-docker.
@JulianPrieber
Thank you for that info!
But how do I put that into the config and where?
Unfortunately this doesn't work in the NGINX reverse proxy...
Sorry, I'm not a programmer or IT person, I just do this as a hobby.
from linkstack-docker.
You just paste the example into your advanced config somewhere after the return [
. If you want to make sure it's not going to cause any errors, you can validate your config before saving with this site: https://phpcodechecker.com/.
I assure you this works on NGINX. All our features are tested and working on NGINX and Apache. The example shown in the release notes is running on NGINX.
Everyone working on this project is doing this as a hobby, we're all just learning as we go.
from linkstack-docker.
I made some changes to the Advanced Config: https://github.com/LinkStackOrg/LinkStack/blob/main/storage/templates/advanced-config.php
This should make it a bit more clear where you can add this option.
from linkstack-docker.
Perfect, I've now managed it using the ID function.
I thank you!! <3
from linkstack-docker.
Related Issues (20)
- `Spatie\Backup\Events\BackupHasFailed` HOT 4
- Resend Verification email loop HOT 7
- Number of Links in Userlist HOT 1
- Multiple Pages Per User [Feature Request] HOT 1
- SSL Certificates HOT 2
- Permission denied on httpd.conf on Startup HOT 5
- [Sun Jan 07 13:43:21.961240 2024] [httpd.conf] ::1 - - "GET / HTTP/1.0" 400 450 "-" "-" HOT 1
- htdocs directory not populating with persistent volume HOT 13
- cant deploy HOT 11
- Update image HOT 1
- Fonts returning 404 when trying to add a link
- Can't bind the /htdocs folder to outside of container HOT 2
- Unwanted Redirection HOT 1
- ErrorException when clicking on email: Attempt to read property "link" on null HOT 2
- Setup Linkstack to different port (no 80 or 443) HOT 1
- Error while Update HOT 1
- Unable to Edit Links HOT 5
- Cannot get WebSockets to work behind Nginx HOT 14
- Unable to add links HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkstack-docker.