Skip to content

Commit

Permalink
[Feat] Checking HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
mariovalney committed Sep 25, 2020
1 parent f31a092 commit 29ed16c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.production
@@ -1,4 +1,4 @@
APP_NAME="RPG Companion for Discord"
APP_URL=https://rpg-companion.mariovalney.com
APP_URL=http://rpg-companion.mariovalney.com
APP_ENV=production
APP_DEBUG=false
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Expand Up @@ -24,7 +24,7 @@ public function register()
*/
public function boot()
{
URL::forceScheme('https');
URL::forceScheme('http');

// View Composers
View::composer('components.sidebar', 'App\Http\View\Composers\GuildSelectorComposer');
Expand Down
13 changes: 13 additions & 0 deletions ci/docker/production/vhost.conf
Expand Up @@ -9,3 +9,16 @@
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

<VirtualHost *:443>
SSLEngine On
DocumentRoot /var/www/html/public

<Directory "/var/www/html/public">
AllowOverride all
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

0 comments on commit 29ed16c

Please sign in to comment.