This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// declare a function to run when the module bootstraps (during the 'config' phase) | |
app.config(['NgAdminConfigurationProvider', function(nga) { | |
// create an admin application | |
var admin = nga.application('Name') | |
.baseApiUrl('http://jsonplaceholder.typicode.com/'); // main API endpoint | |
admin.header('<div header></div>'); | |
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apt-get update && apt-get -y install git | |
# cd /usr/local/src/ && git clone https://github.com/letsencrypt/letsencrypt && cd letsencrypt/ | |
# mkdir -p /usr/local/etc/letsencrypt/ && cp examples/cli.ini /usr/local/etc/letsencrypt/cli.ini | |
# nano /usr/local/etc/letsencrypt/cli.ini | |
# ./letsencrypt-auto certonly --config /usr/local/etc/letsencrypt/cli.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost ...> | |
... | |
# Reverse Proxy | |
ProxyRequests Off | |
#ProxyPreserveHost On | |
RequestHeader set X-Forwarded-Proto "https" | |
ProxyPass /blog http://blog.example.org/blog | |
ProxyPassReverse /blog http://blog.example.org/blog | |
... | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Force HTTPS | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |