I also needed to modify the nginx configuration.
- Create a script that modifies the nginx configuration (probably you
and restarts the nginx service (
service nginx restart).
- You need to execute that script after this nginx config file is written
which is after normal ebextensions are executed. This is undocumented, but
Evan shared how to do this here:
essentially you use an ebextension to copy the script into a directory with
hooks that gets executed at the proper time.
An example ebextension config is
command: "cp .ebextensions/01rewrite_nginx_config.py
command: "chmod +x
This is working nicely now for my project (here is the
source where you can see it in action).