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
type ConnPool struct { | |
pgx.ConnPool | |
} | |
type AfterAcquireFunc func(c *pgx.Conn) error | |
// NewConnPool creates a new ConnPool. config.ConnConfig is passed through to | |
// Connect directly. | |
func NewConnPool(config pgx.ConnPoolConfig) (p *ConnPool, err error) { | |
pp, err := pgx.NewConnPool(config) |
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 declare(strict_types=1); | |
/** | |
* Released under the MIT License. | |
* | |
* Copyright (c) 2018 Miha Vrhovnik <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
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; | |
server_name <your.site.com>; | |
root /var/www/vhosts/<your.site.com>/site/www/; | |
#site root is redirected to the app boot script | |
location = / { | |
try_files @site @site; | |
} |