Merge branch 'main' of https://github.com/JhumanJ/OpnForm
This commit is contained in:
commit
5b01b538de
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex mb-1 input-help">
|
<div class="flex mb-1 input-help">
|
||||||
<small :class="theme.default.help" class="grow flex">
|
<small :class="theme.default.help" class="grow flex">
|
||||||
<slot name="help"><span class="field-help" v-html="help" /></slot>
|
<slot name="help"><span v-if="help" class="field-help" v-html="help" /></slot>
|
||||||
</small>
|
</small>
|
||||||
<slot name="after-help">
|
<slot name="after-help">
|
||||||
<small class="flex-grow" />
|
<small class="flex-grow" />
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
zapierUrl () {
|
zapierUrl () {
|
||||||
opnformConfig.links.zapier_integration
|
return opnformConfig.links.zapier_integration
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,16 @@ server {
|
||||||
try_files $uri $uri/ /index.php$is_args$args;
|
try_files $uri $uri/ /index.php$is_args$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /local/temp/ {
|
||||||
|
set $original_uri $uri;
|
||||||
|
try_files $uri $uri/ /index.php$is_args$args;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /forms/assets/ {
|
||||||
|
set $original_uri $uri;
|
||||||
|
try_files $uri $uri/ /index.php$is_args$args;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass unix:/var/run/php-fpm-opnform-site.sock;
|
fastcgi_pass unix:/var/run/php-fpm-opnform-site.sock;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ use App\Http\Controllers\TemplateController;
|
||||||
use App\Http\Controllers\WorkspaceController;
|
use App\Http\Controllers\WorkspaceController;
|
||||||
use App\Http\Middleware\Form\ResolveFormMiddleware;
|
use App\Http\Middleware\Form\ResolveFormMiddleware;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Http\Response;
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
|
|
||||||
|
|
@ -227,10 +226,8 @@ Route::get('local/temp/{path}', function (Request $request, string $path) {
|
||||||
if (! $request->hasValidSignature()) {
|
if (! $request->hasValidSignature()) {
|
||||||
abort(401);
|
abort(401);
|
||||||
}
|
}
|
||||||
$response = Response::make(Storage::get($path), 200);
|
|
||||||
$response->header('Content-Type', Storage::mimeType($path));
|
|
||||||
|
|
||||||
return $response;
|
return response()->file(Storage::path($path), ['Content-Type' => Storage::mimeType($path)]);
|
||||||
})->where('path', '(.*)')->name('local.temp');
|
})->where('path', '(.*)')->name('local.temp');
|
||||||
|
|
||||||
Route::get('caddy/ask-certificate/{secret?}', [\App\Http\Controllers\CaddyController::class, 'ask'])
|
Route::get('caddy/ask-certificate/{secret?}', [\App\Http\Controllers\CaddyController::class, 'ask'])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue