Skip to content

Instantly share code, notes, and snippets.

View takeit's full-sized avatar
🏠
Working from home

Rafał Muszyński takeit

🏠
Working from home
View GitHub Profile
<?php
use Behat\Behat\Context\Context;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\KernelInterface;
/**
* This context class contains the definitions of the steps used by the demo
* feature file. Learn how to get started with Behat and BDD on Behat's website.
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
# This file is auto-generated during the composer install
parameters:
env(DATABASE_HOST): 127.0.0.1
env(DATABASE_PORT): null
env(DATABASE_NAME): publisher
env(DATABASE_USER): postgres
env(DATABASE_PASSWORD): postgres
env(DATABASE_SERVER_VERSION): 9
mailer_transport: smtp
mailer_host: 127.0.0.1
; Start a new pool named 'www'.
; the variable $pool can be used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
user = www-data
group = www-data
server {
listen 80 default;
root /var/www/publisher/web;
location / {
try_files $uri /app.php$is_args$args;
}
location ~ ^/(app|app_dev|config)\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
@takeit
takeit / config.js
Last active February 14, 2018 10:01
window.superdeskConfig={
apps: ['superdesk-publisher'],
publisher: {
protocol: "http",
tenant: '', // subdomain
domain: '192.168.0.102', // IP address or domain name of your server where Superdesk Publisher is installed
base: 'api/v1'
},
};
@takeit
takeit / install
Last active February 13, 2018 11:36
#!/bin/bash
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -exuo pipefail
export DEBIAN_FRONTEND=noninteractive
export DBUS_SESSION_BUS_ADDRESS=/dev/null
_activate() {
set +ux
. /opt/superdesk/activate.sh
window.superdeskConfig={
defaultTimezone: "Europe/Berlin",
server: {
url: "https://superdesk.pro/api",
ws: "wss://superdesk.pro/ws"
},
iframely: {
key: ""
},
raven: {
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/publisher/web
DirectoryIndex index.php index.html
<Directory /var/www/publisher/web>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>
server {
listen 80;
server_name localhost;
root /var/www/symfony/public;
location / {
try_files $uri @rewriteapp;
}
location @rewriteapp {