Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 093D4200CFA for ; Tue, 5 Sep 2017 17:34:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 07EC2161421; Tue, 5 Sep 2017 15:34:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4E9FF160BE4 for ; Tue, 5 Sep 2017 17:34:36 +0200 (CEST) Received: (qmail 98137 invoked by uid 500); 5 Sep 2017 15:34:34 -0000 Mailing-List: contact commits-help@community.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@community.apache.org Delivered-To: mailing list commits@community.apache.org Received: (qmail 98127 invoked by uid 99); 5 Sep 2017 15:34:34 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2017 15:34:34 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 4B7143A00A7 for ; Tue, 5 Sep 2017 15:34:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1807364 - in /comdev/nearby_people: gunicorn-nearby.service.example local_settings.py.example Date: Tue, 05 Sep 2017 15:34:30 -0000 To: commits@community.apache.org From: nick@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170905153433.4B7143A00A7@svn01-us-west.apache.org> archived-at: Tue, 05 Sep 2017 15:34:37 -0000 Author: nick Date: Tue Sep 5 15:34:29 2017 New Revision: 1807364 URL: http://svn.apache.org/viewvc?rev=1807364&view=rev Log: Allowed hosts for production, logging Modified: comdev/nearby_people/gunicorn-nearby.service.example comdev/nearby_people/local_settings.py.example Modified: comdev/nearby_people/gunicorn-nearby.service.example URL: http://svn.apache.org/viewvc/comdev/nearby_people/gunicorn-nearby.service.example?rev=1807364&r1=1807363&r2=1807364&view=diff ============================================================================== --- comdev/nearby_people/gunicorn-nearby.service.example (original) +++ comdev/nearby_people/gunicorn-nearby.service.example Tue Sep 5 15:34:29 2017 @@ -6,7 +6,7 @@ After=network.target User=www-data Group=www-data WorkingDirectory=/var/www/apps/nearby_people/ -ExecStart=/usr/bin/gunicorn --access-logfile - --workers 4 run_wsgi:application +ExecStart=/usr/bin/gunicorn -b 127.0.0.1:8000 --access-logfile /var/log/gunicorn/nearby_access.log --error-logfile /var/log/gunicorn/nearby_error.log --workers 4 run_wsgi:application [Install] WantedBy=multi-user.target Modified: comdev/nearby_people/local_settings.py.example URL: http://svn.apache.org/viewvc/comdev/nearby_people/local_settings.py.example?rev=1807364&r1=1807363&r2=1807364&view=diff ============================================================================== --- comdev/nearby_people/local_settings.py.example (original) +++ comdev/nearby_people/local_settings.py.example Tue Sep 5 15:34:29 2017 @@ -19,6 +19,14 @@ UID_CREATED_LDIF = os.path.join(BASE_PAT # How often to reload all the DOAP/FOAF files, in hours FOAF_REFRESH_HOURS = 2 +# What host(s) we are running as +ALLOWED_HOSTS = [ + "community-vm.apache.org", + "community.zones.apache.org", + "127.0.0.1", + "localhost" +] + # Google Maps settings GMAPS_KEY = "ABQIAAAAteF8gqn96L8K4RRZYtk7ZRQv7OBTi813IEDuwD3BusDViujKIBTUfK-gV5SL7dqLeRkgc0jLmyXgkg" # localhost #GMAPS_KEY = "ABQIAAAAKzqK7s3QLJgbVNLowesmvBRZUAEs3HYX8hgK-I5Eho3zsmHV-RQBJhSLW6bIoahGVe1Ap9pWhcewGw" # apache.org