Revant Nandgaonkar
1b6ede5e89
Merge pull request #184 from girip11/develop
...
Changed X-Frappe-Site-Name header to use value from `$host` instead o…
2020-04-10 12:00:00 +05:30
girish pasupathy
87c251a464
Changed X-Frappe-Site-Name header to use value from $host
instead of $http_host
in nginx configuration
...
ISSUE
-----
`$http_host` is used for setting header 'X-Frappe-Site-Name'
which adds port number to the header along with the host value. Frappe source app.py expects the header
value to contain only the host name and not the port number. So `$host` should be used instead of
`$http_host` to set the 'X-Frappe-Site-Name' header
`$http_host` vs `$host` in nginx
--------------------------------
`$http_host` contains the host name along with port number whereas `$host` contains only the host name in lowercase without the port number.
> `$host` - This variable is equal to line Host in the header of request or
> name of the server processing the request if the Host header is not available.
> This variable may have a different value from $http_host in such cases:
> * when the Host input header is absent or has an empty value,
> `$host` equals to the value of server_name directive;
> * when the value of Host contains port number, `$host` doesn't include
> that port number. $host's value is always lowercase since 0.8.17.
> - [$host vs $http_host stackoverflow](https://stackoverflow.com/questions/15414810/whats-the-difference-of-host-and-http-host-in-nginx )
From the frappe source file [app.py](https://github.com/frappe/frappe/blob/develop/frappe/app.py#L107 ), X-Frappe-Site-Name is used if its set.
```Python
site = _site or request.headers.get('X-Frappe-Site-Name') or get_site_name(request.host)
```
Since `$host` variable will never contain port number which is not the case with `$http_host`,
`$host` should be used for setting the header 'X-Frappe-Site-Name'. Otherwise we have issues with site serving.
Tested the above changes in compose as well as in swarm environment.
In compose, tested the site with host mapping of 80 and 8000. Works with both the host port mapping.
Tested with erpnext version - v12.5.2
Changes to be committed:
modified: build/common/nginx-default.conf.template
2020-04-09 18:58:34 +05:30
Davide Bortolami
bddf592216
Merge pull request #180 from revant/backup-docs-readme
...
docs: add info about backup command in readme
2020-03-30 12:34:39 +01:00
Revant Nandgaonkar
830d3959b7
docs: add info about backup command in readme
2020-03-30 13:08:55 +05:30
Davide Bortolami
80fdb213d8
Add PR template, issue templates
2020-03-29 22:34:39 +01:00
Revant Nandgaonkar
d2216100a3
Merge pull request #174 from revant/backup-restore
...
feat: cloud backup and restore
2020-03-27 16:43:16 +05:30
Revant Nandgaonkar
2422fbad26
fix: backup and restore
...
create backup dir in worker images
set ownership and mount volume for backups
update readme about restore backup
2020-03-27 16:41:32 +05:30
Revant Nandgaonkar
4e7b7690ee
fix: backup and restore
...
new command FORCE=1 error fixed
only push backups if exists
prepare and process db restore
2020-03-27 16:07:12 +05:30
Revant Nandgaonkar
3a6f7e1934
feat: resotre backups from volume or cloud
2020-03-27 00:28:50 +05:30
Revant Nandgaonkar
754ba8a91a
feat: restrict backups to backup limit for each site
2020-03-25 22:25:24 +05:30
Revant Nandgaonkar
03baa31104
Merge pull request #169 from frappe/ddavidebor-patch-1
...
Create stale.yml
2020-03-25 19:17:08 +05:30
Revant Nandgaonkar
7e1d69456d
Merge pull request #170 from frappe/ddavidebor-patch-2
...
Create greetings.yml
2020-03-25 19:16:52 +05:30
Revant Nandgaonkar
5f187c4e3f
feat: worker command to push backups to cloud
2020-03-25 06:35:49 +05:30
Davide Bortolami
dbd172efc5
Create greetings.yml
...
Adds greeting for first time user interacts with the repo
2020-03-24 17:15:27 +00:00
Davide Bortolami
ebd9d877d9
Create stale.yml
2020-03-24 17:09:09 +00:00
Davide Bortolami
989a55ffe0
Merge pull request #168 from fermiumlabs/update-documentation
...
Add contributing.md by github standards
2020-03-24 17:02:02 +00:00
Davide Bortolami
d64662d7da
fixed
2020-03-24 17:01:33 +00:00
Davide Bortolami
55641c07de
Add contributing.md by github standards
2020-03-24 15:00:46 +00:00
Revant Nandgaonkar
c59d7aef65
Merge pull request #164 from revant/fix-auto-migrate
...
fix: do not auto migrate on first run
2020-03-22 19:10:00 +05:30
Revant Nandgaonkar
14dc20d510
fix: do not auto migrate on first run
2020-03-22 19:08:41 +05:30
Revant Nandgaonkar
01027023cf
Merge pull request #162 from revant/feat-auto-migrate
...
feat: auto migrate
2020-03-21 15:59:29 +05:30
Revant Nandgaonkar
674c766480
feat: auto migrate on container start if AUTO_MIGRATE set
2020-03-21 15:47:35 +05:30
Revant Nandgaonkar
7c356ccb27
fix: make python commands modular and reusable
2020-03-20 20:56:23 +05:30
Revant Nandgaonkar
8ce9d4214d
Merge pull request #161 from revant/fix-160
...
fix(frappe-nginx): fix missing /rsync
2020-03-20 05:22:46 +05:30
Revant Nandgaonkar
f1393c3a94
fix(frappe-nginx): fix missing /rsync
...
fixes #160
2020-03-20 05:21:30 +05:30
Revant Nandgaonkar
0c5ea6d51a
Merge pull request #157 from revant/fix-sites-vol-permission
...
fix(frappe-worker): set sites volume ownership
2020-03-17 22:33:09 +05:30
Revant Nandgaonkar
8475af3785
fix(frappe-worker): set sites volume ownership
2020-03-17 22:31:37 +05:30
Revant Nandgaonkar
c2f9d44332
Merge pull request #154 from revant/fix-travis-wrapper-script-3
...
fix: travis wrapper script for build on master
2020-03-17 00:15:50 +05:30
Revant Nandgaonkar
1db512d334
fix: travis wrapper script for build on master
...
third attempt to get builds on master running
2020-03-17 00:14:16 +05:30
Revant Nandgaonkar
ec0bd99f15
Merge pull request #152 from revant/fix-travis-wrapper-script-2
...
fix: travis wrapper script for build on master
2020-03-16 22:48:43 +05:30
Revant Nandgaonkar
4b1e7530e2
fix: travis wrapper script for build on master
...
second attempt to get builds on master running
2020-03-16 22:47:40 +05:30
Revant Nandgaonkar
5f2bc8ec53
Merge pull request #150 from revant/fix-travis-wrapper-script
...
fix: travis wrapper script for build on master
2020-03-16 22:27:39 +05:30
Revant Nandgaonkar
6853299266
fix: travis wrapper script for build on master
...
first attempt to get builds on master running
2020-03-16 22:25:45 +05:30
Revant Nandgaonkar
8049d414e0
Merge pull request #147 from revant/fix-nginx-config
...
fix: nginx config
2020-03-15 00:21:24 +05:30
Revant Nandgaonkar
6e8d2bf7c2
fix: nginx config
...
add updates from frappe/bench to config
2020-03-15 00:20:28 +05:30
Revant Nandgaonkar
13b9a5f748
Merge pull request #146 from revant/fix-python-container-healthcheck
...
fix: python container healthcheck
2020-03-14 22:48:55 +05:30
Revant Nandgaonkar
40ceb79023
fix: python container healthcheck
...
ping all backing services
2020-03-14 22:47:35 +05:30
Revant Nandgaonkar
817ab58c2d
Merge pull request #144 from revant/fix-debugger
...
fix(bench): debugger fail after bench update
2020-03-12 05:55:56 +05:30
Revant Nandgaonkar
56124984d7
fix(bench): debugger fail after bench update
...
fix debugger fail after bench update
error locale.Error: unsupported locale setting
add locale to image
2020-03-12 05:53:47 +05:30
Revant Nandgaonkar
15d087059b
Merge pull request #143 from revant/feat-bench-image
...
feat(bench): bash-completion
2020-03-11 22:42:55 +05:30
Revant Nandgaonkar
f506c25a6e
feat(bench): bash-completion
...
add bash-completion package
remove install_packages duplicates
workdir set to /home/frappe
2020-03-11 22:38:48 +05:30
Revant Nandgaonkar
ac79b095f3
Merge pull request #142 from revant/fix-socketio
...
fix: publish socketio port in dev docker-compose
2020-03-10 20:06:30 +05:30
Revant Nandgaonkar
307ef2d67a
fix: publish socketio port in dev docker-compose
2020-03-10 20:05:38 +05:30
Revant Nandgaonkar
61cef807c1
Merge pull request #141 from fermiumlabs/update-documentation
...
Add section pointing to documentation on how to enable developer mode
2020-03-10 19:54:15 +05:30
Davide Bortolami
46713d91ba
Add section pointing to documentation on how to enable developer mode
2020-03-10 13:58:06 +00:00
Revant Nandgaonkar
ae8d880702
Merge pull request #135 from fermiumlabs/update-debian
...
Update debian
2020-03-10 06:07:15 +05:30
Davide Bortolami
ba239c0ebe
Install yarn in both nodes
2020-03-10 00:08:50 +00:00
Revant Nandgaonkar
d13f3392ca
Merge pull request #134 from fermiumlabs/feature-enumerate-oackages
...
Enumerate node packages
2020-03-10 05:38:15 +05:30
Davide Bortolami
31f770d467
UID GID 1000
2020-03-10 00:00:46 +00:00
Davide Bortolami
1e9cdacf1a
Reduce layers
2020-03-09 23:37:25 +00:00