Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
v2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramtamtam committed Aug 24, 2018
1 parent 704a5ad commit a69c9b7
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ APP_DEBUG=false

APP_TIMEZONE=UTC
#APP_URL=http://mydomain.com
#FORCE_HTTPS=true

#CACHE_DRIVER=memcached
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v2.2.1

### Added

- Environment value `FORCE_HTTPS` for forcing `https` scheme usage

## v2.2.0

### Changed
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ $ composer create-project tarampampam/mikrotik-hosts-parser

[![Docker build][badge_docker_build]][link_docker_build]
[![Docker pulls][badge_docker_pulls]][link_docker_pulls]
[![Docker size][badge_docker_size]][link_docker_pulls]

[/r/tarampampam/mikrotik-hosts-parser][docker_hub]

Expand Down Expand Up @@ -78,6 +79,7 @@ This is open-sourced software licensed under the [MIT License][link_license].
[badge_pulls]:https://img.shields.io/github/issues-pr/tarampampam/mikrotik-hosts-parser.svg?style=flat-square&maxAge=180
[badge_docker_build]:https://img.shields.io/docker/build/tarampampam/mikrotik-hosts-parser.svg?style=flat-square&maxAge=180
[badge_docker_pulls]:https://img.shields.io/docker/pulls/tarampampam/mikrotik-hosts-parser.svg?style=flat-square&maxAge=180
[badge_docker_size]:https://images.microbadger.com/badges/image/tarampampam/mikrotik-hosts-parser:latest.svg?style=flat-square
[link_releases]:https://github.com/tarampampam/mikrotik-hosts-parser/releases
[link_packagist]:https://packagist.org/packages/tarampampam/mikrotik-hosts-parser
[link_build_status]:https://scrutinizer-ci.com/g/tarampampam/mikrotik-hosts-parser/build-status/master
Expand Down
13 changes: 13 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@

namespace App\Providers;

use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
/**
* Boot application services.
*
* @return void
*/
public function boot()
{
if ((bool) env('FORCE_HTTPS', false) === true) {
URL::forceScheme('https');
}
}

/**
* Register any application services.
*
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ services:
LIMIT_SOURCE_LIFE_SIZE: 2048
LIMIT_SOURCE_URI_LENGTH: 256
EXCLUDED_SOURCES_PROTOCOLS: 'http,https,ftp'
#FORCE_HTTPS: 'true'
#APP_URL: 'http://mydomain3.com'
ports:
- "8000:80"

0 comments on commit a69c9b7

Please sign in to comment.