David Taylor
a6a60c8057
DEV: Apply syntax_tree formatting to app/*
2023-01-09 14:14:59 +00:00
Daniel Waterworth and GitHub
7c441dc238
DEV: New readonly mode. Only applies to non-staff ( #16243 )
2022-05-17 13:06:08 -05:00
Jarek Radosz and GitHub
f9ce778bb2
DEV: Avoid $ globals ( #15453 )
...
Also:
* Remove an unused method (#fill_email)
* Replace a method that was used just once (#generate_username) with `SecureRandom.alphanumeric`
* Remove an obsolete dev puma `tmp/restart` file logic
2022-01-08 23:39:46 +01:00
David Taylor and GitHub
8660a3d80f
FEATURE: Allow a cluster_name to be configured and used for /srv/status ( #12365 )
...
The cluster name can be configured by setting the `DISCOURSE_CLUSTER_NAME` environment variable. If set, you can then call /srv/status with a `?cluster=` parameter. If the cluster does not match, an error will be returned. This is useful if you need a load balancer to be able to verify the identity, as well as the presence, of an application container.
2021-03-15 15:41:59 +11:00
Kane York and Kane York
5cf37e691a
DEV: shutdown_ok parameter to /srv/status
...
This allows probers to distinguish between liveness and readiness conditions
2020-03-09 14:06:13 -07:00
Joffrey JAFFEUX and GitHub
67c00c00e2
DEV: s/\$redis/Discourse\.redis ( #8431 )
...
This commit also adds a rubocop rule to prevent global variables.
2019-12-03 10:05:53 +01:00
Régis Hanol
0b0425d55f
DEV: rename ReadOnly module to ReadOnlyHeader
2019-05-06 16:07:49 +02:00
Régis Hanol
2e1c3968dc
FIX: add ReadOnly hear to /srv/status
2019-05-03 12:21:07 +02:00
Guo Xiang Tan
7a905e0c79
FIX: ForumsController doesn't need to inherit from ApplicationController.
...
Application controller has a whole bunch of before/after actions which
we have no need for.
2019-01-21 14:37:04 +08:00
Sam
82e80d58be
PERF: add frozen strings
2018-01-15 12:44:54 +11:00
Guo Xiang Tan
a99f00f0da
Fix all the errors to get our tests green on Rails 5.1.
2017-09-25 13:48:58 +08:00
Sam Saffron
68c9e18db5
SECURITY: prefer render plain/html to render text where possible
2017-04-10 08:01:42 -04:00
Dmitry Demenchuk
15b54e9bb1
Delete useless home_redirect method from ForumsController.
2016-10-27 15:45:22 +01:00
Régis Hanol
921ba4c579
remove /error endpoint
2016-04-11 20:43:24 +02:00
Sam
21ff904f51
PERF: avoid preloading json in cases where it is not needed
...
(uploads / avatars / non GET requests)
2015-05-20 17:12:16 +10:00
Sam
d19aa130f4
FEATURE: add clean support for running Discourse in a subfolder
...
To setup set DISCOURSE_RELATIVE_URL_ROOT to the folder you wish
2015-03-09 13:14:29 +11:00
Sam
c98f0973ec
FIX: status route should be served as text not html
2015-02-06 15:56:21 +11:00
Akshay
d56ba5795e
Avoid using to_s when performing String Interpolation
2014-08-14 23:55:27 +05:30
riking
0d4163e0a2
FEATURE: Nice error handling page
2014-07-03 07:52:14 -07:00
Sam
7fbf162666
Logster update
...
cleans up a bunch of messed up context stuff with multisite
improves backtraces
adds request params
2014-05-25 13:54:52 +10:00
Neil Lalonde
a86b35c873
Remove the access_password site setting
2013-06-25 15:05:25 -04:00
Sam
255a614142
keep /srv/status exposed
2013-06-06 14:40:10 +10:00
Karan Misra
5dfb04e4b3
Convert a lot of :a => b to a: b and bring peace to the world
2013-03-25 05:07:36 +05:30
Sarah Vessels
54c7b1ab63
Use consistent new-style hashes in render calls *twitch*
2013-03-22 14:08:11 -04:00
Jakub Arnold
61654ab8f0
Fix all the trailing whitespace
2013-02-07 16:45:24 +01:00
Robin Ward
21b5628528
Initial release of Discourse
2013-02-05 14:16:51 -05:00