Необходимо реализовать такой роутинг через NGINX
/a/*
(user dashboard, SPA/Vue.js)/*
(все кроме/a/*
тулит на proxy pass в Nuxt SSR)
Конфиг NGINX'a
map $sent_http_content_type $expires {
"text/html" epoch;
location /pma { | |
alias /usr/share/phpmyadmin; | |
try_files $uri $uri/ @pma =404; | |
location ~ \.php$ { | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $request_filename; | |
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; # <-- change this to fit your installation | |
} | |
} |
#!/usr/bin/liquidsoap | |
# Activate the live stream input | |
set('harbor.bind_addr', '0.0.0.0') | |
# Configure input A | |
input_a = input.harbor( | |
'input_a', | |
port=8001, | |
password='bigproblem' |
location / { | |
index index.html; | |
root /usr/share/kiwiirc/; | |
} | |
location /webirc/ { | |
# Forward incoming requests to local webircgateway socket | |
proxy_pass http://127.0.0.1:7778/webirc/; | |
# Set http version and headers | |
proxy_http_version 1.1; |
<?php | |
class Conexao | |
{ | |
private static $conexao; | |
private function __construct() | |
{} | |
public static function getInstance() |
#!/bin/bash | |
# Copyright 2018, 2019, 2020 Azure Zanculmarktum | |
# All rights reserved. | |
# | |
# Redistribution and use of this script, with or without modification, is | |
# permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of this script must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. |
# Change the relevant {{ PARTS OF THIS FILE }} for your remote address etc. | |
# Make sure this unit file is named similarly to your mountpoint; e.g., for /mnt/mymountpoint name this file mnt-mymountpoint.mount | |
# On Ubuntu: | |
# $ sudo cp mnt-mymountpoint.mount /lib/systemd/system/ | |
# $ sudo systemctl enable mnt-mymountpoint.mount | |
# $ sudo systemctl start mnt-mymountpoint.mount | |
# On Fedora: | |
# $ sudo cp mnt-mymountpoint.mount /etc/systemd/system | |
# $ sudo systemctl enable mnt-mymountpoint.mount | |
# $ sudo systemctl start mnt-mymountpoint.mount |