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

nginx #30

Open
stephentcannon opened this issue Mar 7, 2014 · 5 comments
Open

nginx #30

stephentcannon opened this issue Mar 7, 2014 · 5 comments

Comments

@stephentcannon
Copy link
Contributor

What about nginx as part of the setup with accompanying nginx conf files?

@iwoork
Copy link

iwoork commented Apr 3, 2014

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

@Multiply
Copy link

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.

@arunoda
Copy link
Owner

arunoda commented Apr 25, 2014

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

@Multiply
Copy link

@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.

@arunoda
Copy link
Owner

arunoda commented Feb 16, 2015

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

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

No branches or pull requests

4 participants