You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to Solid/Solid start but I've been always keeping an eye to it, I really like it ❤️ .
I'm considering migrating an existing project to SolidStart so I'm doing a bit of my "due diligence". It seems to provide everything I need but there are two things that I haven't been able to figure out, and these are critical things:
1. Serve additional assets
This application allows for files to be uploaded to a custom directory in the server (outside of the public directory, the actual directory is passed as an env var at startup, such as UPLOADS_DIR=/data/uploads).
I need to be able to serve (from this same app, not from an nginx proxy in front, etc...) these files, let's say, at /uploads/... or similar. I thought I would be able to add a custom vinxi router as shown here, but it seems that configuration is not exposed on SolidStart's own configuration.
How could I do this?
2. Basic auth
This application is for internal users, and needs to support HTTP Basic Auth and protect the whole application (except for the /uploads path, and a healthcheck path) .
So far the current application has an express middleware that handles this very nicely. What's the recommended way to do this in SolidStart?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there!
I'm new to Solid/Solid start but I've been always keeping an eye to it, I really like it ❤️ .
I'm considering migrating an existing project to SolidStart so I'm doing a bit of my "due diligence". It seems to provide everything I need but there are two things that I haven't been able to figure out, and these are critical things:
1. Serve additional assets
This application allows for files to be uploaded to a custom directory in the server (outside of the
public
directory, the actual directory is passed as an env var at startup, such asUPLOADS_DIR=/data/uploads
).I need to be able to serve (from this same app, not from an nginx proxy in front, etc...) these files, let's say, at
/uploads/...
or similar. I thought I would be able to add a custom vinxi router as shown here, but it seems that configuration is not exposed on SolidStart's own configuration.How could I do this?
2. Basic auth
This application is for internal users, and needs to support HTTP Basic Auth and protect the whole application (except for the /uploads path, and a healthcheck path) .
So far the current application has an express middleware that handles this very nicely. What's the recommended way to do this in SolidStart?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions