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
| # http block | |
| geoip_city /usr/local/share/GeoIP/GeoIPCity.dat; | |
| geoip_country /usr/local/share/GeoIP/GeoIPCountry.dat; | |
| # location block | |
| proxy_set_header GEOIP_COUNTRY_CODE $geoip_country_code; | |
| proxy_set_header GEOIP_COUNTRY_CODE3 $geoip_country_code3; | |
| proxy_set_header GEOIP_COUNTRY_NAME $geoip_country_name; |
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
| # copied from https://www.e-rave.nl/create-a-self-signed-ssl-key-for-postfix | |
| openssl genrsa -des3 -out mail.domain.tld.key 2048 | |
| chmod 600 mail.domain.tld.key | |
| openssl req -new -key mail.domain.tld.key -out mail.domain.tld.csr | |
| openssl x509 -req -days 365 -in mail.domain.tld.csr -signkey mail.domain.tld.key -out mail.domain.tld.crt | |
| openssl rsa -in mail.domain.tld.key -out mail.domain.tld.key.nopass | |
| mv mail.domain.tld.key.nopass mail.domain.tld.key | |
| openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650 | |
| chmod 600 mail.domain.tld.key |