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
server { | |
listen 80; | |
listen [::]:80; | |
server_name {{ domain }}; | |
client_max_body_size 10M; | |
root /var/www/{{ domain }}/webroot/; | |
index index.php; |
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
## Redirects all HTTP traffic to the HTTPS host | |
## | |
## http://serverfault.com/questions/67316/in-nginx-how-can-i-rewrite-all-http-requests-to-https-while-maintaining-sub-dom/337893#337893 | |
## https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab-ssl | |
## http://serverfault.com/questions/638367/do-you-need-separate-ipv4-and-ipv6-listen-directives-in-nginx/638370#638370 | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name {{ domain }}; | |
return 301 https://$server_name$request_uri; |
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
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
server_name {{ domain }}; | |
client_max_body_size 10M; | |
root {{ webroot }}; | |
index index.php index.html index.htm; |
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
# See: https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/ | |
server { | |
server_name {{ app_domain }}; | |
root /var/www/{{ app_domain }}; | |
access_log /var/log/nginx/{{ app_domain }}.access.log; | |
error_log /var/log/nginx/{{ app_domain }}.error.log; | |
location = /favicon.ico { | |
log_not_found off; |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.{{ domain }}; | |
return 301 http://{{ domain }}$request_uri; | |
access_log /var/log/nginx/www.{{ domain }}.access.log; | |
error_log /var/log/nginx/www.{{ domain }}.error.log; | |
} |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name {{ domain }}; | |
client_max_body_size 10M; | |
root {{ webroot }}; | |
index index.php index.html index.htm; |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name {{ hostname }}; | |
client_max_body_size 10M; | |
root /var/www/{{ hostname }}; | |
index index.php index.html index.htm; |
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
<?php | |
/* | |
echo Tiago > monos | |
zip --password 1234 monos.zip monos | |
#unzip -P 1234 monos.zip -d unzipped | |
chgrp www . | |
chmod g+w . | |
*/ | |
$bin = shell_exec('which unzip'); |
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
# Set default values for all following accounts. | |
defaults | |
# Always use TLS. | |
tls on | |
# Set a list of trusted CAs for TLS. You can use a system-wide default file, | |
# as in this example, or download the root certificate of your CA and use that. | |
tls_trust_file ~/etc/ssl/certs/cacert.pem |
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
Verifying that +mono is my blockchain ID. https://onename.com/mono |