Skip to content
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1107 from CityOfBoston/staging-cluster-support
Browse files Browse the repository at this point in the history
Support for deploying to ECS staging cluster
  • Loading branch information
fionawhim committed Jun 12, 2018
2 parents 77078a9 + 685ec69 commit e3b37ec
Show file tree
Hide file tree
Showing 14 changed files with 1,147 additions and 16 deletions.
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ services:
build:
context: .
dockerfile: dockerfiles/mysql
command: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
- "--innodb-buffer-pool-size=256M"
- "--key-buffer-size=10M"
ports:
- "3306:3306"
environment:
Expand Down
4 changes: 3 additions & 1 deletion docker/php.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
memory_limit = 256M
; Needs to be high enough that we can fetch and resize assets with stage_file,
; but not so high that it eats all of the container memory.
memory_limit = 384M
max_execution_time = 60
39 changes: 39 additions & 0 deletions docker/vendor/webconsole/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# About

Web Console is a web-based application that allows to execute shell commands on a server directly from a browser (web-based SSH).
The application is very light, does not require any database and can be installed and configured in about 3 minutes.

If you like Web Console, please consider an opportunity to support it on Patreon (https://www.patreon.com/nickola).

# Installation

Installation process is really simple:

- Download latest version of the Web Console.
- Unpack archive and open file "webconsole.php" in your favorite text editor.
- At the beginning of the file enter your $USER and $PASSWORD credentials, edit any other settings that you like (see description in the comments).
- Upload changed "webconsole.php" file to the web server and open it in the browser.

# About author

Web Console has been developed by Nickolay Kovalev (http:https://nickola.ru).
If you have interest job offers, you can see him contacts at his CV (http:https://cv.nickola.ru).
Also, various third-party components are used.

# Used components

- jQuery JavaScript Library: https://github.com/jquery/jquery
- jQuery Terminal Emulator: https://github.com/jcubic/jquery.terminal
- jQuery Mouse Wheel Plugin: https://github.com/brandonaaron/jquery-mousewheel
- PHP JSON-RPC 2.0 Server/Client Implementation: https://github.com/sergeyfast/eazy-jsonrpc
- Normalize.css: https://github.com/necolas/normalize.css

# URLs

- GitHub: https://github.com/nickola/web-console
- Patreon: https://www.patreon.com/nickola
- Author: http:https://nickola.ru

# License

Web Console is licensed under GNU LGPL Version 3 (http:https://www.gnu.org/licenses/lgpl.html) license.
30 changes: 30 additions & 0 deletions docker/vendor/webconsole/useful/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Example '.htaccess' for Web Console

Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/?$ %{REQUEST_URI}webconsole.php [L]
RewriteRule !^(webconsole\.php|favicon\.ico)$ - [F]
</IfModule>

<IfModule !mod_rewrite.c>
Order Deny,Allow
Deny from all

<Files "webconsole.php">
Order Allow,Deny
Allow from all
</Files>

<Files "favicon.ico">
Order Allow,Deny
Allow from all
</Files>
</IfModule>

# Errors
ErrorDocument 401 "401: Authorization Required
ErrorDocument 403 "403: Access Forbidden
ErrorDocument 404 "404: File not found
ErrorDocument 500 "500: Internal Server Error
Binary file added docker/vendor/webconsole/useful/favicon.ico
Binary file not shown.
Loading

0 comments on commit e3b37ec

Please sign in to comment.