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

App static files via nginx #93

Closed
RainerAtSpirit opened this issue Dec 30, 2017 · 2 comments
Closed

App static files via nginx #93

RainerAtSpirit opened this issue Dec 30, 2017 · 2 comments
Labels

Comments

@RainerAtSpirit
Copy link

I got an express back end app that also serves a bunch of static files. Those static files could be probably better served by nginx directly. By pulling those out of the temporary zipfile that gets deployed the size of the file would be reduced dramatically. Is that possible by manually changing some configuration files and copying the files to a specific place?

@githubsaturn
Copy link
Collaborator

Yes, it's possible with the new release V0.4.0.

Note that in CaptainDuckDuck instance everything is containerized and cross contamination is very minimal. The nginx container has no access to files in your app container, therefore you cannot reference your app specific files, from your nginx config which lives in nginx container. The only link between nginx and your app is a normal HTTP connection.

@RainerAtSpirit
Copy link
Author

Excellent, so method 1 it is.

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

No branches or pull requests

2 participants