hugo -s [/path/to/source] -d [/path/to/destination] -b [/base/url]
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: | |
" Amir Salihefendic | |
" http://amix.dk - [email protected] | |
" | |
" Version: | |
" 5.0 - 29/05/12 15:43:36 | |
" | |
" Blog_post: | |
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github |
When the proxied service is unavailable, Nginx will by default return HTTP code 502. We can change this response by the following config:
server {
location {
proxy_pass http://somehost/someuri
}
...
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
chcon -R -t httpd_sys_content_t /path/to/directory | |
chcon -R -t httpd_sys_content_rw_t /path/to/directory |
firewall-cmd --permanent --zone=public --add-rich-rule='
rule family="ipv4"
source address="192.168.0.0/16"
port protocol="tcp" port="8080" accept'
Source: https://major.io/2014/11/24/trust-ip-address-firewallds-rich-rules/
I don't know how to reset Archiva admin password -.- My work around is to create a new admin by deleting Archiva's user database.
Steps
- Delete Archiva user database. Don't forget to make a backup.
mv /archiva-root/data/databases/users /archiva-root/data/databases/users_bak
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
## Create a new Bridge network | |
docker network create --driver=bridge --subnet=172.17.0.1/24 --gateway=172.17.0.1 --ip-range=172.17.0.0/24 network-name |