diff --git a/CHANGELOG.md b/CHANGELOG.md index 8820e0b929..069ca1200c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,8 @@ - [Feature][pull3343]: Add `access_type` as optional kwarg to lockfuncs (Volund) - [Feature][pull3344]: New middleware for checking IP/subnets from requests. New tools `evennia.utils.match_ip` and `utils.ip_from_request` to help. (Volund) +- [Feature][pull3349]: Refactored almost all default commands to use + `Command.msg` over the `command.caller.msg` direct call (more flexible) (Volund) - [Fix] (Backwards incompatible): Change `settings._TEST_ENVIRONMENT` to `settings.TEST_ENVIRONMENT` to address issues during refactored startup sequence. - [Fix][pull3197]: Make sure Global scripts only start in one place, @@ -44,11 +46,13 @@ (InspectorCaracal) - [Fix][issue3272]: Make sure `ScriptHandler.add` does not fail if passed an instantiated script. (Volund) +- [Fix][pull3350]: `CmdHelp` was using the wrong protocol-key identifier when + routing to the ajax web client. - [Fix][pull3338]: Resolve if/elif bug in XYZGrid contrib launch command (jaborsh) - [fix][issue3331]: Made XYZGrid query zcoords in a case-insensitive manner. - [Fix][pull3322]: Fix `BaseOption.display` to always return a string. -- Docs: Lots of Typo fixes (iLPdev, InspectorCaracal, jaborsh) +- Docs: Lots of Typo and other fixes (iLPdev, InspectorCaracal, jaborsh) - Beginner tutorial: Cleanup and starting earlier with explaining how to add to the default cmdsets. @@ -71,6 +75,8 @@ [pull3342]: https://github.com/evennia/evennia/pull/3342 [pull3343]: https://github.com/evennia/evennia/pull/3343 [pull3344]: https://github.com/evennia/evennia/pull/3344 +[pull3349]: https://github.com/evennia/evennia/pull/3349 +[pull3350]: https://github.com/evennia/evennia/pull/3350 [issue3272]: https://github.com/evennia/evennia/issues/3272 [issue3273]: https://github.com/evennia/evennia/issues/3273 [issue3308]: https://github.com/evennia/evennia/issues/3307 diff --git a/docs/source/Coding/Changelog.md b/docs/source/Coding/Changelog.md index 5c04c3a48d..069ca1200c 100644 --- a/docs/source/Coding/Changelog.md +++ b/docs/source/Coding/Changelog.md @@ -30,6 +30,10 @@ - [Feature][pull3342]: Add `Command.cmdset_source`, referring to the cmdset each command was originally pulled from (Volund) - [Feature][pull3343]: Add `access_type` as optional kwarg to lockfuncs (Volund) +- [Feature][pull3344]: New middleware for checking IP/subnets from requests. New + tools `evennia.utils.match_ip` and `utils.ip_from_request` to help. (Volund) +- [Feature][pull3349]: Refactored almost all default commands to use + `Command.msg` over the `command.caller.msg` direct call (more flexible) (Volund) - [Fix] (Backwards incompatible): Change `settings._TEST_ENVIRONMENT` to `settings.TEST_ENVIRONMENT` to address issues during refactored startup sequence. - [Fix][pull3197]: Make sure Global scripts only start in one place, @@ -42,11 +46,13 @@ (InspectorCaracal) - [Fix][issue3272]: Make sure `ScriptHandler.add` does not fail if passed an instantiated script. (Volund) +- [Fix][pull3350]: `CmdHelp` was using the wrong protocol-key identifier when + routing to the ajax web client. - [Fix][pull3338]: Resolve if/elif bug in XYZGrid contrib launch command (jaborsh) - [fix][issue3331]: Made XYZGrid query zcoords in a case-insensitive manner. - [Fix][pull3322]: Fix `BaseOption.display` to always return a string. -- Docs: Lots of Typo fixes (iLPdev, InspectorCaracal, jaborsh) +- Docs: Lots of Typo and other fixes (iLPdev, InspectorCaracal, jaborsh) - Beginner tutorial: Cleanup and starting earlier with explaining how to add to the default cmdsets. @@ -68,6 +74,9 @@ [pull3338]: https://github.com/evennia/evennia/pull/3338 [pull3342]: https://github.com/evennia/evennia/pull/3342 [pull3343]: https://github.com/evennia/evennia/pull/3343 +[pull3344]: https://github.com/evennia/evennia/pull/3344 +[pull3349]: https://github.com/evennia/evennia/pull/3349 +[pull3350]: https://github.com/evennia/evennia/pull/3350 [issue3272]: https://github.com/evennia/evennia/issues/3272 [issue3273]: https://github.com/evennia/evennia/issues/3273 [issue3308]: https://github.com/evennia/evennia/issues/3307 diff --git a/docs/source/Contribs/Contrib-Character-Creator.md b/docs/source/Contribs/Contrib-Character-Creator.md index 064da5240e..b7594da2e8 100644 --- a/docs/source/Contribs/Contrib-Character-Creator.md +++ b/docs/source/Contribs/Contrib-Character-Creator.md @@ -47,7 +47,7 @@ customize that with the setting `MAX_NR_CHARACTERS`.) By default, the new `charcreate` command will reference the example menu provided by the contrib, so you can test it out before building your own menu. You can reference -[the example menu here](github:evennia/contrib/rpg/character_creator/example_menu.py) for +[the example menu here](github:develop/evennia/contrib/rpg/character_creator/example_menu.py) for ideas on how to build your own. Once you have your own menu, just add it to your settings to use it. e.g. if your menu is in diff --git a/docs/source/Setup/Settings-Default.md b/docs/source/Setup/Settings-Default.md index 94e2ff9e3d..6f9de3fd93 100644 --- a/docs/source/Setup/Settings-Default.md +++ b/docs/source/Setup/Settings-Default.md @@ -109,7 +109,8 @@ WEBSERVER_PORTS = [(4001, 4005)] # Interface addresses to listen to. If 0.0.0.0, listen to all. Use :: for IPv6. WEBSERVER_INTERFACES = ["0.0.0.0"] # IP addresses that may talk to the server in a reverse proxy configuration, -# like NginX. +# like NginX or Varnish. These can be either specific IPv4 or IPv6 addresses, +# or subnets in CIDR format - like 192.168.0.0/24 or 2001:db8::/32. UPSTREAM_IPS = ["127.0.0.1"] # The webserver uses threadpool for handling requests. This will scale # with server load. Set the minimum and maximum number of threads it @@ -1050,6 +1051,7 @@ MIDDLEWARE = [ "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.admindocs.middleware.XViewMiddleware", "django.contrib.flatpages.middleware.FlatpageFallbackMiddleware", + "evennia.web.utils.middleware.OriginIpMiddleware", "evennia.web.utils.middleware.SharedLoginMiddleware", ]