Posted by ceng on August 31, 2012 at 11:19am
3 followers
| Project: | Push Notifications |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | haagendazs |
| Status: | closed (fixed) |
Issue Summary
Hi,
I'd like to be able to store the certificates outside the webroot and also be able to have different certificate names for different environments. i.e. I dont want to call the certificates apns-production.pem and apns-development.pem as I have several sites and environments sharing a common codebase and would just like to be able to specify absolute paths to the pem files in the settings.php file for each site.
I see its possible to change the file name with a hidden variable but would also like to change the path.
I'm putting together a patch that shouldn't break the current model but will allow optional overriding of the certification location to an absolute path.
Kind regards,
John
Comments
#1
Hi,
This patch suggestion adds a new variable called push_notifications_apns_certificate_folder. If empty the certificates folder in the module is used. It also adds a text field on the configuration screen to specify this folder location. The variable folder location is relative to the site root
For example, you may specify your certificates folder to be sites/example.org/certificates/
Kind regards,
John
#2
Hi John,
Thanks for writing this patch. I reviewed it and made a few changes:
See attached patch and let me know your thoughts.
Danny
#3
#4
Hi Danny,
Looks great to me!
Rgds,
John
#5
Awesome. Committed here: http://drupalcode.org/project/push_notifications.git/commit/adf518c3b3c1...
#6
Automatically closed -- issue fixed for 2 weeks with no activity.