Compare commits

..

48 Commits

Author SHA1 Message Date
Daniël Klabbers
4bbaae25f6
Merge pull request #92 from gomzyakov/patch-1
Fix Flarum logo in README.md
2024-06-29 21:28:45 +02:00
Alexander Gomzyakov
ecb5b6b9ab
Update README.md 2024-06-29 17:25:43 +05:00
Alexander Gomzyakov
5d98f8965b
Fix Flarum logo in README.md 2024-06-29 14:09:53 +05:00
Sami Mazouz
30bc7b40ce
chore: mark resource protection rule blocks 2024-01-02 16:03:33 +01:00
Sami Mazouz
fb04e78b1f
chore: Release v1.8.0 2023-05-20 19:23:43 +01:00
Sami Mazouz
177e6e16d0
chore: Release v1.7.0 2023-03-10 14:55:40 +01:00
Sami Mazouz
b0316baf72
chore: v1.6 changes 2022-11-15 13:23:40 +01:00
Daniël Klabbers
0be676095d v1.5 changes 2022-09-13 11:46:32 +02:00
Soobin Rho
887f9e288c
docs: update copyright year (#85)
Update copyright year from 2021 to 2022.
2022-07-25 09:05:22 +01:00
Soobin Rho
9ad5d2cb18
docs: link logo at the top with the official website (#84)
When I was reading README.md,
I clicked the logo and I expected to go to
the official website https://flarum.org/
but it didn't. So, the image is being linked
to the official website in this commit.

Signed-off-by: Soobin Rho <soobinrho@gmail.com>
2022-07-23 10:14:48 +01:00
Daniël Klabbers
151257ee7a chore: update changelog and dependencies 2022-07-13 18:44:29 +02:00
Edward Betts
bceb9cae11
chore: Correct spelling mistakes (#81) 2022-06-09 11:55:06 +01:00
Daniël Klabbers
64ca250e44 v1.3 release 2022-05-16 10:59:34 +02:00
Daniel Klabbers
4ce0568122 Release v1.2 2022-01-20 12:59:45 +01:00
David Wheatley
1b23531e8c
docs: remove TravisCI badge 2021-12-17 20:19:25 +01:00
victorelec14
20a2be9946
fix: update docs url in composer.json (#78) 2021-12-15 15:16:49 +00:00
Kalecgos1
a18c94aedc
Add text/javascript to gzip_types in .nginx.conf (#77)
Add text/javascript to gzip_types in .nginx.conf files to allow gzipping of *.js files.
2021-10-23 20:42:04 -04:00
Xiangbo Mao
bfc0693fc0
fix broken doc links in README.md (#76)
Co-authored-by: Xiang-Bo Mao <xmao@tableau.com>
2021-10-03 03:21:29 -04:00
Daniël Klabbers
dd31375264
Merge pull request #75 from flarum/jordanjay29-patch-1
Remove redundant installation info lines
2021-06-28 10:33:26 +02:00
jordanjay29
ffed65ca63
Remove redundant installation info lines
Why do we even have this ~~lever~~ line? 

Looks like a bit of oversight when we consolidated docs and updated for stable. Probably made sense at the time, now we have installation docs that we keep up to date. Remove this line to prevent confusion because it's out of date.
2021-06-27 23:59:25 -05:00
Daniël Klabbers
9c2f747f92
change security to the policy page 2021-06-10 23:10:24 +02:00
Daniel Klabbers
d5b2515f54 changelog for v1.0.0 2021-05-27 10:54:35 +02:00
Daniël Klabbers
ea8723b4f2
update constraints for stable (#74)
* update constraints for stable

* Update composer.json
2021-05-25 14:50:52 +02:00
David Wheatley
ceb7c7fcf3
Update copyright year 2021-05-15 00:43:06 +01:00
Alexander Skvortsov
46c648991c
Fix PHP reqs, mention mariadb 2021-03-16 02:37:49 -04:00
Daniel Klabbers
cd4b673d98 Release v0.1.0-beta.16 2021-03-15 16:19:04 +01:00
OrangeTurtle197
cc0046bcc1
Update README.md (#72)
fix screenshot in readme
2021-03-05 10:51:26 -05:00
Daniël Klabbers
5950779a1a
Update composer.json (#71)
update authors
2021-02-23 10:32:12 +01:00
Alexander Skvortsov
07379ba4a5
Add nicknames to new installs (#70) 2020-12-20 22:53:11 +01:00
Daniël Klabbers
5abd213039 added @askvortsov1 to composer.json 2020-10-20 16:46:50 +02:00
Daniël Klabbers
e39a512e0c changelog for v0.1.0-beta.14 2020-10-20 16:45:55 +02:00
Lucas Henrique
68110bf52e
Fix README.md logo path (#68)
Bring back Flarum logo by adding missing "/assets" segment.
2020-10-15 19:41:56 -04:00
Daniël Klabbers
e786d788ea
Update composer.json (#67)
Drop the oauth extensions, see https://github.com/flarum/core/issues/2006
2020-09-07 19:54:14 -04:00
Matt Kilgore
4ffaf91ec4
Add IIS config for easier windows setup (#66)
* Add IIS config for easier windows setup

* Use regex from .nginx.conf and comment out rule

Uses the more common regex which reduces the number of rules and also commented out for consistency with nginx and apache

* Used enabled flag for no-public restrictions

Also fixes any indentations
2020-09-04 18:33:33 -04:00
Clark Winkelmann
0ef4318913
nginx rule to prevent access to sensitive files (#65)
* nginx rule to prevent access to sensitive files
* Add a suggested rule that does the same as the suggested rule in .htaccess
* Add .git and auth.json to nginx sensitive resources
2020-06-03 08:59:10 +02:00
Alexander Skvortsov
3aeffd15aa
Latest beta now requires PHP 7.2+ 2020-05-08 11:49:45 -04:00
Daniël Klabbers
9400a34ab0
Release v0.1.0-beta.13 2020-05-06 10:57:08 +02:00
Daniël Klabbers
adada6456f
prevents reading composer related json file 2020-04-21 15:05:09 +02:00
Daniël Klabbers
7fc74eb36c ready up for b12, updated authors, changelog 2020-03-04 10:41:48 +01:00
Franz Liedke
542331b6b4
Extract duplicated site setup to shared file (#63) 2020-01-31 14:03:32 +01:00
Franz Liedke
41497429f6
Consistent spacing 2020-01-17 16:43:50 +01:00
Daniël Klabbers
abe7a51cf5
update index.php with new license 2020-01-05 22:31:04 +01:00
Daniël Klabbers
7a875ce203
update extend.php with new license 2020-01-05 22:30:37 +01:00
Daniël Klabbers
0aeead1259
update binary with new copyright 2020-01-05 22:30:09 +01:00
Franz Liedke
cb7312b84a
Update copyright year 2020-01-03 15:21:10 +01:00
Franz Liedke
38a0c4558b
Revert "fixes" from StyleCI
These were intended, to simplify getting started or changing things in
the base skeleton.

StyleCI has now been disabled for this repository.
2020-01-03 15:20:30 +01:00
Franz Liedke
f1d5b46b4e Apply fixes from StyleCI 2019-11-29 23:17:03 +00:00
Franz Liedke
60299dd9e5
Update copyright claims in LICENSE 2019-11-30 00:01:05 +01:00
12 changed files with 238 additions and 72 deletions

View File

@ -15,5 +15,5 @@ indent_size = 2
[*.{diff,md}]
trim_trailing_whitespace = false
[*.php]
[*.{php,json}]
indent_size = 4

View File

@ -3,6 +3,15 @@ location / {
try_files $uri $uri/ /index.php?$query_string;
}
# Uncomment the following lines if you are not using a `public` directory
# to prevent sensitive resources from being exposed.
# <!-- BEGIN EXPOSED RESOURCES PROTECTION -->
# location ~* ^/(\.git|composer\.(json|lock)|auth\.json|config\.php|flarum|storage|vendor) {
# deny all;
# return 404;
# }
# <!-- END EXPOSED RESOURCES PROTECTION -->
# The following directives are based on best practices from H5BP Nginx Server Configs
# https://github.com/h5bp/server-configs-nginx
@ -55,6 +64,7 @@ gzip_types
image/x-icon
text/cache-manifest
text/css
text/javascript
text/plain
text/vcard
text/vnd.rim.location.xloc

View File

@ -1,5 +1,83 @@
# Changelog
## [1.8.0](https://github.com/flarum/flarum/compare/v1.7.0...v1.8.0)
No changes.
## [1.7.0](https://github.com/flarum/flarum/compare/v1.6.0...v1.7.0)
No changes.
## [1.6.0](https://github.com/flarum/flarum/compare/v1.5.0...v1.6.0)
No changes.
## [1.5.0](https://github.com/flarum/flarum/compare/v1.4.0...v1.5.0)
### Changed
- Update copyright [#85]
- Link logo to official website [#84]
## [1.4.0](https://github.com/flarum/flarum/compare/v1.3.0...v1.4.0)
No changes.
## [1.3.0](https://github.com/flarum/flarum/compare/v1.2.0...v1.3.0)
No changes.
## [1.2.0](https://github.com/flarum/flarum/compare/v1.1.0...v1.2.0)
No changes.
## [1.1.0](https://github.com/flarum/flarum/compare/v1.0.0...v1.1.0)
No changes.
## [1.0.0](https://github.com/flarum/flarum/compare/v0.1.0-beta.16...v1.0.0)
### Changed
- Updated constraints of core and bundled extensions for v1.0.0 stable release (https://github.com/flarum/flarum/pull/74)
## [0.1.0-beta.16](https://github.com/flarum/flarum/compare/v0.1.0-beta.15...v0.1.0-beta.16)
### Changed
- Remove list of developers and refer to https://flarum.org/team (https://github.com/flarum/flarum/pull/71)
### Fixed
- Missing image on README.md (https://github.com/flarum/flarum/pull/72)
## [0.1.0-beta.15](https://github.com/flarum/flarum/compare/v0.1.0-beta.14...v0.1.0-beta.15)
### Added
- Nicknames added to our bundled list (https://github.com/flarum/flarum/pull/70)
## [0.1.0-beta.14](https://github.com/flarum/flarum/compare/v0.1.0-beta.13...v0.1.0-beta.14)
### Added
- Nginx rules to prevent access to sensitive files (#65)
- IIS configuration added (#66)
### Changed
- Minimum PHP requirement is now 7.2+
### Fixed
- Logo path in readme didn't resolve correctly (#68)
### Removed
- Social auth drivers removed (#67)
## [0.1.0-beta.13](https://github.com/flarum/flarum/compare/v0.1.0-beta.12...v0.1.0-beta.13)
### Changed
- Prevent access to authorisation tokens saved by composer next to the composer.json file ([adada64](https://github.com/flarum/flarum/commit/adada6456f210ea5c94a805a39d88fa613a9e4a2)).
## [0.1.0-beta.12](https://github.com/flarum/flarum/compare/v0.1.0-beta.8.1...v0.1.0-beta.12)
### Changed
- Consolidate site setup into shared file (#63).
## [0.1.0-beta.8.1](https://github.com/flarum/flarum/compare/v0.1.0-beta.8...v0.1.0-beta.8.1)
### Fixed

View File

@ -1,6 +1,7 @@
The MIT License (MIT)
Copyright (c) Toby Zerner
Copyright (c) 2019-2022 Stichting Flarum (Flarum Foundation)
Copyright (c) 2014-2019 Toby Zerner (toby.zerner@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,7 +1,8 @@
<p align="center"><img src="https://flarum.org/img/logo.png"></p>
<p align="center">
<a href="https://flarum.org/"><img src="https://flarum.org/images/flarum.svg"></a>
</p>
<p align="center">
<a href="https://travis-ci.org/flarum/core"><img src="https://travis-ci.org/flarum/core.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/flarum/core"><img src="https://poser.pugx.org/flarum/core/d/total.svg" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/flarum/core"><img src="https://poser.pugx.org/flarum/core/v/stable.svg" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/flarum/core"><img src="https://poser.pugx.org/flarum/core/license.svg" alt="License"></a>
@ -17,27 +18,21 @@
* **Powerful and extensible.** Customize, extend, and integrate Flarum to suit your community. Flarums architecture is amazingly flexible, with a powerful Extension API.
![screenshot](https://flarum.org/img/screenshot.png)
![screenshot](https://flarum.org/assets/img/home-screenshot.png)
## Installation
You must have SSH access to a server with **PHP 7.1+** and **MySQL 5.6+**, and install [Composer](https://getcomposer.org/).
```
composer create-project flarum/flarum . --stability=beta
```
Read the **[Installation guide](https://flarum.org/docs/install.html)** for more information. For support, refer to the [documentation](https://flarum.org/docs/), and ask questions on the [community forum](https://discuss.flarum.org/) or [Discord chat](https://flarum.org/discord/).
Read the **[Installation guide](https://docs.flarum.org/install)** to get started. For support, refer to the [documentation](https://docs.flarum.org/), and ask questions on the [community forum](https://discuss.flarum.org/) or [Discord chat](https://flarum.org/discord/).
## Contributing
Thank you for considering contributing to Flarum! Please read the **[Contributing guide](https://flarum.org/docs/contributing.html)** to learn how you can help.
Thank you for considering contributing to Flarum! Please read the **[Contributing guide](https://docs.flarum.org/contributing)** to learn how you can help.
This repository only holds the Flarum skeleton application. Most development happens in [flarum/core](https://github.com/flarum/core).
## Security Vulnerabilities
If you discover a security vulnerability within Flarum, please send an e-mail to [security@flarum.org](mailto:security@flarum.org). All security vulnerabilities will be promptly addressed.
If you discover a security vulnerability within Flarum, please follow our [security policy](https://github.com/flarum/core/security/policy) so we can address it promptly.
## License

View File

@ -2,49 +2,45 @@
"name": "flarum/flarum",
"description": "Delightfully simple forum software.",
"type": "project",
"keywords": ["forum", "discussion"],
"keywords": [
"forum",
"discussion"
],
"homepage": "https://flarum.org/",
"license": "MIT",
"authors": [
{
"name": "Toby Zerner",
"email": "toby.zerner@gmail.com"
},
{
"name": "Franz Liedke",
"email": "franz@develophp.org"
"name": "Flarum",
"email": "info@flarum.org",
"homepage": "https://flarum.org/team"
}
],
"support": {
"issues": "https://github.com/flarum/core/issues",
"source": "https://github.com/flarum/flarum",
"docs": "https://flarum.org/docs/"
"docs": "https://docs.flarum.org/"
},
"require": {
"flarum/core": "^0.1.0",
"flarum/approval": "^0.1.0",
"flarum/auth-facebook": "^0.1.0",
"flarum/auth-github": "^0.1.0",
"flarum/auth-twitter": "^0.1.0",
"flarum/bbcode": "^0.1.0",
"flarum/emoji": "^0.1.0",
"flarum/lang-english": "^0.1.0",
"flarum/flags": "^0.1.0",
"flarum/likes": "^0.1.0",
"flarum/lock": "^0.1.0",
"flarum/markdown": "^0.1.0",
"flarum/mentions": "^0.1.0",
"flarum/pusher": "^0.1.0",
"flarum/statistics": "^0.1.0",
"flarum/sticky": "^0.1.0",
"flarum/subscriptions": "^0.1.0",
"flarum/suspend": "^0.1.0",
"flarum/tags": "^0.1.0"
"flarum/core": "^1.8",
"flarum/approval": "*",
"flarum/bbcode": "*",
"flarum/emoji": "*",
"flarum/lang-english": "*",
"flarum/flags": "*",
"flarum/likes": "*",
"flarum/lock": "*",
"flarum/markdown": "*",
"flarum/mentions": "*",
"flarum/nicknames": "*",
"flarum/pusher": "*",
"flarum/statistics": "*",
"flarum/sticky": "*",
"flarum/subscriptions": "*",
"flarum/suspend": "*",
"flarum/tags": "*"
},
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "beta",
"prefer-stable": true
}
}

View File

@ -3,10 +3,8 @@
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Flarum\Extend;

26
flarum
View File

@ -1,22 +1,24 @@
#!/usr/bin/env php
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
require 'vendor/autoload.php';
$site = require 'site.php';
$server = new Flarum\Console\Server(
Flarum\Foundation\Site::fromPaths([
'base' => __DIR__,
'public' => __DIR__.'/public',
'storage' => __DIR__.'/storage',
])
);
/*
|-------------------------------------------------------------------------------
| Interpret console arguments
|-------------------------------------------------------------------------------
|
| Flarum's console interprets all command-line arguments to select and then
| execute corresponding commands for certain administrative tasks.
|
*/
$server = new Flarum\Console\Server($site);
$server->listen();

View File

@ -6,12 +6,15 @@
# Uncomment the following lines if you are not using a `public` directory
# to prevent sensitive resources from being exposed.
# <!-- BEGIN EXPOSED RESOURCES PROTECTION -->
# RewriteRule /\.git / [F,L]
# RewriteRule ^auth\.json$ / [F,L]
# RewriteRule ^composer\.(lock|json)$ / [F,L]
# RewriteRule ^config.php$ / [F,L]
# RewriteRule ^flarum$ / [F,L]
# RewriteRule ^storage/(.*)?$ / [F,L]
# RewriteRule ^vendor/(.*)?$ / [F,L]
# <!-- END EXPOSED RESOURCES PROTECTION -->
# Pass requests that don't refer directly to files in the filesystem to index.php
RewriteCond %{REQUEST_FILENAME} !-f

View File

@ -3,20 +3,24 @@
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
require '../vendor/autoload.php';
$site = require '../site.php';
$server = new Flarum\Http\Server(
Flarum\Foundation\Site::fromPaths([
'base' => __DIR__.'/..',
'public' => __DIR__.'/../public',
'storage' => __DIR__.'/../storage',
])
);
/*
|-------------------------------------------------------------------------------
| Accept incoming HTTP requests
|-------------------------------------------------------------------------------
|
| Every HTTP request pointed to the web server that cannot be served by simply
| responding with one of the files in the "public" directory will be sent to
| this file. Now is the time to boot up Flarum's internal HTTP server, which
| will try its best to interpret the request and return the appropriate
| response, which could be a JSON document (for API responses) or a lot of HTML.
|
*/
$server = new Flarum\Http\Server($site);
$server->listen();

29
public/web.config Normal file
View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="Index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<!-- Changed `enabled=` to true in the rule below if you are not using the `public` directory to
prevent sensitive resources from being exposed -->
<rule name="Disallow sensitive directories" enabled="false" stopProcessing="true">
<match url="^/(\.git|composer\.(json|lock)|auth\.json|config\.php|flarum|storage|vendor)" ignoreCase="false" />
<action type="CustomResponse" url="/" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Handle index.php re-write" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

50
site.php Normal file
View File

@ -0,0 +1,50 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
/*
|-------------------------------------------------------------------------------
| Load the autoloader
|-------------------------------------------------------------------------------
|
| First, let's include the autoloader, which is generated automatically by
| Composer (PHP's package manager) after installing our dependencies.
| From now on, all classes in our dependencies will be usable without
| explicitly loading any files.
|
*/
require __DIR__.'/vendor/autoload.php';
/*
|-------------------------------------------------------------------------------
| Configure the site
|-------------------------------------------------------------------------------
|
| A Flarum site represents your local installation of Flarum. It can be
| configured with a bunch of paths:
|
| - The *base path* is Flarum's root directory and contains important files
| such as config.php and extend.php.
| - The *public path* is the directory that serves as document root for the
| web server. Files in this place are accessible to the public internet.
| This is where assets such as JavaScript files or CSS stylesheets need to
| be stored in a default install.
| - The *storage path* is a place for Flarum to store files it generates during
| runtime. This could be caches, session data or other temporary files.
|
| The fully configured site instance is returned to the including script, which
| then uses it to boot up the Flarum application and e.g. accept web requests.
|
*/
return Flarum\Foundation\Site::fromPaths([
'base' => __DIR__,
'public' => __DIR__.'/public',
'storage' => __DIR__.'/storage',
]);