- Create tunnel
This file contains hidden or 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
log_format elb_log '$proxy_protocol_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent "$http_referer" ' '"$http_user_agent"'; | |
server { | |
listen 80 proxy_protocol; | |
listen [::]:80 proxy_protocol; | |
server_name localhost; | |
access_log /var/log/nginx/elb-access_http.log elb_log; | |
location / { | |
root /var/www/html; | |
rewrite ^(.*)$ https://$host$1 permanent; |
This file contains hidden or 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
# vim: filetype=upstart | |
env UWSGI_BIN=/home/ubuntu/www/example_app/current/venv/bin/uwsgi | |
env PYTHONPATH=/home/ubuntu/www/example_app/current | |
env NEW_RELIC_CONFIG_FILE=/etc/newrelic/newrelic.ini | |
env NEW_RELIC_ADMIN=/usr/local/bin/newrelic-admin | |
expect fork | |
umask 0000 |
This file contains hidden or 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
#!/bin/bash | |
#### Source : https://vincent.composieux.fr/article/install-configure-and-automatically-renew-let-s-encrypt-ssl-certificate | |
WEB_SERVICE='nginx' | |
CONFIG_FILE='/usr/local/etc/le-yourdomain-webroot.ini' | |
LE_PATH='/opt/letsencrypt' | |
EXP_LIMIT=30; | |
if [ ! -f $CONFIG_FILE ]; then | |
echo "[ERROR] config file does not exist: $CONFIG_FILE" |
OlderNewer