Giter Site home page Giter Site logo

nginx about meteor-up-legacy HOT 5 OPEN

arunoda avatar arunoda commented on June 27, 2024
nginx

from meteor-up-legacy.

Comments (5)

iwoork avatar iwoork commented on June 27, 2024

Would love to have this as well infront of the meteor app

from meteor-up-legacy.

Multiply avatar Multiply commented on June 27, 2024

There's so many different ways apps work, so how would you have nginx being set up?

I just made a few configs for some of my own projects, where some include SSL, some doesn't. Some needs redirects from other domains, and so on.

If you have a good way to solve it, I wouldn't mind integrating it.

from meteor-up-legacy.

arunoda avatar arunoda commented on June 27, 2024

I think that's not a job of mup. Mup will get too complicated if so.

from meteor-up-legacy.

Multiply avatar Multiply commented on June 27, 2024

@arunoda I agree. Yet, wouldn't it be smart to be able to store an nginx.conf (or any other type of file, for that matter) file in your own project, and have a way to do symlinks, and restarts of any given service?

For example you have a folder with files, to use for deployment, in which I would (for nginx) store a "nginx.conf" file, a "ssl.crt" and a "ssl.key" file. Then in the mup.json file, add variables like

{
  "appName": "com.domain",
  "symlink": {
    "nginx.conf": "/etc/nginx/sites-available/com.domain.conf"
  },
  "service": {
    "nginx": "reload"
  }
}

And refer to the two SSL-files directly from the nginx.conf and to the SSL-files like so:

server {
  # ...
  ssl_certificate     /opt/com.domain/deployment_files/ssl.crt;
  ssl_certificate_key /opt/com.domain/deployment_files/ssl.key;
  # ...
}

What should happen, is:

  • Includes the "deployment_files" folder (call it something better suited, maybe?), when publishing it to the server
  • Make symlinks from target to point, as per the symlink object
  • Send commands to services, as per the service object

Let me know what you think. ;)

Edit:
If you want to deploy to multiple servers, you most likely don't want a service like nginx running on more than 1 server, so I guess my above code, should be defined in the server section, if it should be implemented. Again... This quickly gets out of the scope for mup as I see it.

from meteor-up-legacy.

arunoda avatar arunoda commented on June 27, 2024

Now we've the SSL support. Check docs: https://github.com/arunoda/meteor-up#ssl-support

from meteor-up-legacy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.