mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Some checks failed
CI / GitHub Env Debug (push) Waiting to run
CI / Setup Release (push) Waiting to run
CI / Setup Flatpak Matrix (push) Waiting to run
CI / Linux Flatpak (push) Blocked by required conditions
CI / Linux ${{ matrix.type }} (--appimage-build, 22.04, AppImage) (push) Blocked by required conditions
CI / Homebrew (${{ matrix.os_name }}-${{ matrix.os_version }}${{ matrix.release == true && ' (Release)' || '' }}) (macos, 13) (push) Blocked by required conditions
CI / Homebrew (${{ matrix.os_name }}-${{ matrix.os_version }}${{ matrix.release == true && ' (Release)' || '' }}) (macos, 14) (push) Blocked by required conditions
CI / Homebrew (${{ matrix.os_name }}-${{ matrix.os_version }}${{ matrix.release == true && ' (Release)' || '' }}) (ubuntu, latest) (push) Blocked by required conditions
CI / Homebrew (${{ matrix.os_name }}-${{ matrix.os_version }}${{ matrix.release == true && ' (Release)' || '' }}) (ubuntu, latest, true) (push) Blocked by required conditions
CI / Windows (push) Blocked by required conditions
CI Docker / Check Dockerfiles (push) Waiting to run
CI Docker / Setup Release (push) Blocked by required conditions
CI Docker / Docker${{ matrix.tag }} (push) Blocked by required conditions
CodeQL / Get language matrix (push) Waiting to run
CodeQL / Analyze (${{ matrix.name }}) (push) Blocked by required conditions
Build GH-Pages / prep (push) Waiting to run
Build GH-Pages / call-jekyll-build (push) Blocked by required conditions
localize / Update Localization (push) Has been cancelled
38 lines
804 B
C++
38 lines
804 B
C++
/**
|
|
* @file src/confighttp.h
|
|
* @brief Declarations for the Web UI Config HTTP server.
|
|
*/
|
|
#pragma once
|
|
|
|
// standard includes
|
|
#include <string>
|
|
|
|
// local includes
|
|
#include "thread_safe.h"
|
|
|
|
#define WEB_DIR SUNSHINE_ASSETS_DIR "/web/"
|
|
|
|
namespace confighttp {
|
|
constexpr auto PORT_HTTPS = 1;
|
|
void start();
|
|
} // namespace confighttp
|
|
|
|
// mime types map
|
|
const std::map<std::string, std::string> mime_types = {
|
|
{"css", "text/css"},
|
|
{"gif", "image/gif"},
|
|
{"htm", "text/html"},
|
|
{"html", "text/html"},
|
|
{"ico", "image/x-icon"},
|
|
{"jpeg", "image/jpeg"},
|
|
{"jpg", "image/jpeg"},
|
|
{"js", "application/javascript"},
|
|
{"json", "application/json"},
|
|
{"png", "image/png"},
|
|
{"svg", "image/svg+xml"},
|
|
{"ttf", "font/ttf"},
|
|
{"txt", "text/plain"},
|
|
{"woff2", "font/woff2"},
|
|
{"xml", "text/xml"},
|
|
};
|