All hosting is offered in your choice of 12 worldwide hosting locations. All Data Centers are are SSAE16, SOC, PCI, and HIPAA-Compliant. ISO 9001: 2008 for quality management systems and ISO/IEC 27001:2005 for information security management systems.
Your choice of 18 hosting locations worldwide. New York City, San Francisco, Toronto, London, Paris, Frankfurt, Stockholm, Amsterdam, Madrid, Warsaw, Mexico City, Sao Paulo, Santiago, Johannesburg, Seoul, Singapore, Tokyo, and Sydney.
Certified Data Centers
Cited, Inc. provides services to customers in over 80 countries worldwide. SSAE16, SOC, PCI, and HIPAA-Compliant. ISO 9001: 2008 for quality management systems and ISO/IEC 27001:2005 for information security management systems.
Your choice of 18 hosting locations worldwide. New York City, San Francisco, Toronto, London, Paris, Frankfurt, Stockholm, Amsterdam, Madrid, Warsaw, Mexico City, Sao Paulo, Santiago, Johannesburg, Seoul, Singapore, Tokyo, and Sydney.
Certified Data Centers
Cited, Inc. provides services to customers in over 80 countries worldwide. SSAE16, SOC, PCI, and HIPAA-Compliant. ISO 9001: 2008 for quality management systems and ISO/IEC 27001:2005 for information security management systems.
Your choice of 18 hosting locations worldwide. New York City, San Francisco, Toronto, London, Paris, Frankfurt, Stockholm, Amsterdam, Madrid, Warsaw, Mexico City, Sao Paulo, Santiago, Johannesburg, Seoul, Singapore, Tokyo, and Sydney.
Certified Data Centers
Cited, Inc. provides services to customers in over 80 countries worldwide. SSAE16, SOC, PCI, and HIPAA-Compliant. ISO 9001: 2008 for quality management systems and ISO/IEC 27001:2005 for information security management systems.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<htmllang="en">
<!-- Mirrored from geohelm.docs.acugis.com/en/latest/qgis/pgservice.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 13 Jul 2023 23:22:49 GMT -->
<!-- Added by HTTrack --><metahttp-equiv="content-type"content="text/html;charset=utf-8"/><!-- /Added by HTTrack -->
<li><aclass="reference internal"href="#test-file-on-desktop"id="id7">Test File on Desktop</a></li>
</ul>
</li>
</ul>
</div>
<divclass="section"id="why-use-it">
<h2><aclass="toc-backref"href="#id2">Why Use It?</a><aclass="headerlink"href="#why-use-it"title="Permalink to this headline">¶</a></h2>
<p>The pg_service.conf file allows you to connect your QGIS project using only a Service Name, so your password is not stored (even in in encrypted format) in your QGIS document.</p>
<p>This is particulary important with QGIS as a misconfigured qgis_mapserver or Apache/NGINX can cause the .qgis file to be downloaded rather than rendered in the browser.</p>
</div>
<divclass="section"id="create-file-on-server">
<h2><aclass="toc-backref"href="#id3">Create File on Server</a><aclass="headerlink"href="#create-file-on-server"title="Permalink to this headline">¶</a></h2>
<p><strong>1. Create the pg_service.conf file under the /etc/postgresql-common directory</strong></p>
<h2><aclass="toc-backref"href="#id4">Test File on Server</a><aclass="headerlink"href="#test-file-on-server"title="Permalink to this headline">¶</a></h2>
<p>It’s a good idea to test your file.</p>
<p>To do, su to user postgres:</p>
<divclass="highlight-default notranslate"><divclass="highlight"><pre><span></span><spanclass="n">root</span><spanclass="nd">@suite</span><spanclass="p">:</span><spanclass="o">~</span><spanclass="c1"># su - postgres</span>
<p>You have now verified the pg_service.conf file is working correctly.</p>
</div>
<divclass="section"id="create-file-on-desktop">
<h2><aclass="toc-backref"href="#id5">Create File on Desktop</a><aclass="headerlink"href="#create-file-on-desktop"title="Permalink to this headline">¶</a></h2>
<p><strong>1. Copy the pg_service.conf file you created above to your desktop and note the location</strong></p>
<p><strong>2. Change the host to the hostname (or IP) of your GeoSuite server</strong></p>
<p>So, for example, if your GeoSuite is running on IP 1.2.3.4, your file would look as below:</p>
<p><strong>4. In the Environmental Variables box click new. In the New User Variable box enter PGSERVICEFILE for Variable name and the location you saved the pg_service.conf file above as Variable value. Click OK</strong></p>
<p>You have now registered your pg_service.conf file.</p>
</div>
<divclass="section"id="test-file-on-desktop">
<h2><aclass="toc-backref"href="#id7">Test File on Desktop</a><aclass="headerlink"href="#test-file-on-desktop"title="Permalink to this headline">¶</a></h2>
<p>To test our pg_service.conf file on our desktop, start QGIS.</p>
<p><strong>1. On the left menu, click PostGIS and then right click “Add New Connection”</strong></p>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org/">Read the Docs</a>.