improve portal nginx config

please verify this config before merge, because it was not validated
Merge pull request #2 from tbicr/main_config

improve portal nginx config