AWS ElasticBeanstalk update without modifying Django wsgi.conf

103 visualizações
Pular para a primeira mensagem não lida

Ronaldo Bahia

não lida,
26 de ago. de 2016, 10:14:4426/08/2016
para Django users

I have a django app deployed in AWS EB using autoscaling. This app uses Django Rest with Token Authentication. In order for this to work, I have to add the following lines in etc/httpd/conf.d/wsgi.conf file:

RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

WSGIPassAuthorization On

The problem is: when AWS do an autoscale or ElasticBeanstalk environment upgrade, the wsgi.conf file is updated and the custom settings are deleted.

How can I avoid that?

Thanks in advance


Stackoverflow thread: http://stackoverflow.com/questions/39168351/aws-elasticbeanstalk-update-without-modifing-django-wsgi-conf


Bernard Letourmy

não lida,
28 de ago. de 2016, 11:59:0428/08/2016
para Django users
Hello,
I just posted an answer on Stackoverflow.
Bernard

Ronaldo Bahia

não lida,
29 de ago. de 2016, 16:16:2229/08/2016
para django...@googlegroups.com
Thanks a lot. I will test it and let you know the results.

Best regards 

Ronaldo Bahia
11 3280 6971
11 963 622 581

Materiais gratuitos para o RH:

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/YWL5el0cLCc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/96f717f0-aa39-41ec-badb-f77344db6168%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem